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
55
How to customize the SummaryResultPresenter in xaml
posted

I am trying to customize the number of decimal places that are displayed in the Summary. I also want the customization to be applied to just a few columns.

Is there a way to define a style that will change the display format, let say from 2 decimal places to 5 decimal places for just certain columns? Also in the grid we do not name the columns, we bind to the collection and the public properties of the item are the columns name.

 

Thanks

Parents
  • 138253
    Offline posted

    Hello,

     

    Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I copied the default Style of the SummaryResultPresenter and set a Converter of the TextBlock’s Text that is used to display the Summary’s Value. Also in the Converter I checked which is the Column, to determine whether to use Format or not. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.

    XamDataGrdiSummaryResultFormat.zip
Reply Children