How to get RowId or RowNo in the extrasection of the Grouping Grid

Hi,

I have added extra section in the Syncfusion GroupingGrid,even I was able to display summaries in extra section,but what is happening is if I add two extra row in the GroupingGrid and display Summaries in that,what it does is,it displays summaries in both the rows whereas I need to display summaries only on the first row of the extra section.

Later on I may need to add some more extra rows in the groupingGrid and want to display my custom values on them.

Pls reply asap

Thanks
Ejaz




1 Reply

AD Administrator Syncfusion Team December 8, 2006 12:22 PM UTC

Hi Ejaz,
You can handle the QueryCellStyleInfo event to customize the ExtraSection cells in a grid.
Please refer this code snippet:

private void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
Element el = e.TableCellIdentity.DisplayElement;
if (el is ExtraSection)
{
e.Style.CellType = "Header";
e.Style.Text = "ExtraSectionCell";
e.Style.Font = new GridFontInfo(new Font(e.Style.GdipFont ,FontStyle.Bold));
}
}

Best Regards,
Jeba.

Loader.
Up arrow icon