We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Syncfusion crashes when Summary Row Format and Type are modified.

Hi
I am using Syncfusion version 4.4.0.51 grid in one of my project. When I tried to modify the summerycolumn format syncfusion is throwing an exception.
But it is working fine while creating a new summery column. Exception message has been attached.
It will very helpful if anybody can suggest a good solution for this issue.

Thanks,
Hareesh Bharadwaj



Syncfusion crash_553145bd.zip

2 Replies

HB Hareesh Bharadwaj July 2, 2008 03:41 AM UTC

Please help me This problem is really happening with syncfusion grid.



SR Sri Rajan Syncfusion Team July 4, 2008 06:06 AM UTC

Hi Hareesh,

Thank you for your interest in Syncfusion products.

Please try this coding to change the Summary Column format and let me know if this helps.

void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if (e.TableCellIdentity.TableCellType == GridTableCellType.SummaryFieldCell)
{
if (e.TableCellIdentity.SummaryColumn.Name == "Total")
{
GridTable table = e.TableCellIdentity.Table;
GridSummaryRow row = e.TableCellIdentity.DisplayElement as GridSummaryRow;
GridSummaryRowDescriptor summaryRowDescriptor = row.SummaryRowDescriptor;
GridSummaryColumnDescriptor sumCol1 = summaryRowDescriptor.SummaryColumns["Total"];
if (sumCol1 != null)
{
e.Style.TextColor = Color.Red;
sumCol1.Format = "{Sum:##.0000;}";
}
}
}
}


Best Regards,
Srirajan.


Loader.
Live Chat Icon For mobile
Up arrow icon