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.
Unfortunately, activation email could not send to your email. Please try again.

access first summary row in GGC

Thread ID:

Created:

Updated:

Platform:

Replies:

80833 Apr 29,2009 03:54 AM Apr 30,2009 02:18 AM Windows Forms 2
loading
Tags: GridControl
Oliver G
Asked On April 29, 2009 03:54 AM

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



Oliver G
Replied On April 29, 2009 06:07 AM

got it working, code is below.


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




Rajadurai C [Syncfusion]
Replied On April 30, 2009 02:18 AM

Hi Oliver,

Thanks for your interest in Syncfusion products.

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

Regards,
Rajadurai


CONFIRMATION

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.

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.

;