SfDataGrid Column Summaries significant digits

Hi,
How do I specify the number of significant digits in my summary column Format property?

Format = "Total: {Sum}"

See attached example code where using the format above outputs 5 significant digits. 


Attachment: SyncfusionWpfApp2_1126f4e.zip

1 Reply

DY Deivaselvan Y Syncfusion Team October 16, 2018 02:47 AM UTC

Hi Zeljko,

Thank you for contacting Syncfusion support.

We have modified your application to format the summary text with the 5 significant digits by deriving a new class from GridTableSummaryCellRenderer and override its OnUpdateEditBinding virtual method.
Please find the modified sample from the below link and let us know if this helps you.

http://www.syncfusion.com/downloads/support/forum/140369/ze/SyncfusionWpfApp2-1962749871.zip

You can also refer the below article to apply Number Format to the Summary text of TableSummary.
https://www.syncfusion.com/kb/5312/how-to-use-numberformatinfo-in-the-summarycolumn-of-the-gridtablesummaryrow

Regards,
Deivaselvan 


Loader.
Up arrow icon