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

access first summary row in GGC

Hi, I have a GGC, added some summary rows to it. current code looks like this.

GridSummaryColumnDescriptor scd1= ....
...
GridSummaryRowDescriptor srd =
new GridSummaryRowDescriptor("sRow1", "Total", new GridSummaryColumnDescriptor[] { scd1, scd2,scd3,scd4,scd5,scd6,scd7,scd8,scd9,scd10 });

_gridGroupControl.TableDescriptor.SummaryRows.Add(srd);
_gridGroupControl.ChildGroupOptions.ShowCaptionSummaryCells = true;
_gridGroupControl.ChildGroupOptions.ShowSummaries = false;
_gridGroupControl.ChildGroupOptions.ShowGroupHeader = false;
_gridGroupControl.ChildGroupOptions.CaptionSummaryRow = "sRow1";
_gridGroupControl.ChildGroupOptions.CaptionText = "{Category}- {RecordCount} items";
_gridGroupControl.ChildGroupOptions.SummaryRowPlacement = GridSummaryRowPlacement.BeforeFilter;

_gridGroupControl.TopLevelGroupOptions.ShowCaptionSummaryCells = false;
_gridGroupControl.TopLevelGroupOptions.CaptionSummaryRow = "sRow1";
_gridGroupControl.TopLevelGroupOptions.CaptionText = "TOTAL";
_gridGroupControl.TopLevelGroupOptions.ShowGroupHeader = false;
_gridGroupControl.TopLevelGroupOptions.ShowCaption = false;
_gridGroupControl.TopLevelGroupOptions.SummaryRowPlacement = GridSummaryRowPlacement.BeforeFilter;


Now I want to access the first summary row at the very top at start, eg the code should select the row (and trigger a click event.
this click event normally gets fired up when the user interacts with the ggc.
many thanks and regards
Oliver



2 Replies

OG Oliver G April 29, 2009 10:07 AM UTC

got it working, code is below.


Element el = this.gridGroupingControl1.Table.DisplayElements[2].ParentElement;





RC Rajadurai C Syncfusion Team April 30, 2009 06:18 AM UTC

Hi Oliver,

Thanks for your interest in Syncfusion products.

Glad to hear that your issue had been solved. Thanks for your update.

Regards,
Rajadurai


Loader.
Live Chat Icon For mobile
Up arrow icon