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
570
Display zero's as blank ?
posted

In XamDataGrid 7.2, is it possible to set a property to display zero values as blank ?

Parents
No Data
Reply
  • 8576
    Verified Answer
    Offline posted
    Hi Andy -
     
    The easiest way to do this is probably to wait for the 7.2 hotfix which is currently undergoing final customer review and should be made publicly available early next week. 
     
    In that hotfix release, we have added a Converter (and ConverterCulture) property to the Field object.  This lets you easily specify a converter (i.e. a class that implements IValueConverter) to display a value that is different than the underlying data value.
     
    To do this without the hotfix you would have to re-template the CellValuePresenter and include a converter in the property binding on the element within the template that is displaying the value.
     
    Joe
     
     
Children