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
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