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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

access first summary row in GGC

Thread ID:





80833 Apr 29,2009 07:54 AM UTC Apr 30,2009 06:18 AM UTC WinForms 2
Tags: GridControl
Oliver G
Asked On April 29, 2009 07:54 AM UTC

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.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 G
Replied On April 29, 2009 10:07 AM UTC

got it working, code is below.

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

Rajadurai C [Syncfusion]
Replied On 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.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon