The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi, I am using the GridSummarycolumnDescription to sum up the columns in my GGC. I would like to specify the format in which the summary should be displayed. $1000000.00 as $1,000,000.00, $-1000 as $(1,000)(in red) etc... the below is the code that I am currently using..
ADAdministrator Syncfusion Team January 23, 2007 04:42 PM UTC
Hi Navaneeth,
Thanks for being patience.
This can be achieved by changing the Format and Appearance property of the summary column accordingly. The following is the code snippet. >>>>>>>> Code Snippet <<<<<<<<< total_summary.Format = "{Sum:$0,0.00}"; total_summary.Appearance.SummaryFieldCell.TextColor = Color.Red; >>>>>>>>>>>>>><<<<<<<<<<<<<<<
Kindly let us know if you need any further assistance. Have a nice day.
Best regards, Madhan
NRNavaneeth RajkumarJanuary 23, 2007 05:16 PM UTC
Madhan, Thanks for your reply. The text color is supposed to be red only if the sum is negative. So is there a way to capture the sum and check for its value? or is there a property which does that?
Thanks
>Hi Navaneeth,
Thanks for being patience.
This can be achieved by changing the Format and Appearance property of the summary column accordingly. The following is the code snippet. >>>>>>>> Code Snippet <<<<<<<<< total_summary.Format = "{Sum:$0,0.00}"; total_summary.Appearance.SummaryFieldCell.TextColor = Color.Red; >>>>>>>>>>>>>><<<<<<<<<<<<<<<
Kindly let us know if you need any further assistance. Have a nice day.
Best regards, Madhan
ADAdministrator Syncfusion Team January 24, 2007 07:43 PM UTC
Hi Navaneeth,
Thank you for being patience.
Please refer to the following code snippet which demonstrates the way to achieve the intend behavior by using the QueryCellStyleInfo event.