Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
Empty string, null or DBNull from blank textcolumn
posted

In the WPF version there was a way to control what was returned when the user did not enter a value. Is there something similar in the Silverlight version?

Parents
No Data
Reply
  • 40030
    Suggested Answer
    Offline posted

    Hi, 

    Currently the way to do this would be to set a ValueConverter on the column and just check if the value is null, and return whatever value you want. 

    In 11.1 we'll be adding support for Data Annotations which will include support for the DisplayFormatAttribute's NullDisplay text property. So you'll be able to attribute you're underlying data. 

    -SteveZ

Children