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.

Multiple GridSummaryRowDescriptor row at the very top or bottom of ggc

Thread ID:

Created:

Updated:

Platform:

Replies:

48942 Sep 6,2006 06:40 PM Sep 19,2011 10:10 AM Windows Forms 8
loading
Tags: Grouping
jamesb
Asked On September 6, 2006 06:40 PM

Hi Guys:

Is it possible to add more than one GridSummaryRowDescriptor row at the top or bottom of the ggc? I need to add additional GridSummaryRowDescriptor that are not necessarily Summary rows but whose cell will be populated manually thru the QueryCellInfo event!

Please help!

Administrator [Syncfusion]
Replied On September 7, 2006 12:31 AM

Hi James,

Yes. you can add the multiple summay rows in a grid by using SummaryRows.Add method. By default, it adds the summary rows at the bottom of the grid. Below is a code snippet.

//For showing two summary row
this.grid.TableDescriptor.SummaryRows.Add( new GridSummaryRowDescriptor("Row2", "parentID", new GridSummaryColumnDescriptor[] {sd1}));
this.grid.TableDescriptor.SummaryRows.Add( new GridSummaryRowDescriptor("Row1", "parentName", new GridSummaryColumnDescriptor[] {sd2}));

If you want to show the summary row at top, See the below KB article for more details.
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=222

Let me know if this helps.
Thanks,
Haneef

jamesb
Replied On September 13, 2006 08:47 PM

This solution doesn''t provide the solution that I want to implement. I am trying to add summary rows over the topmost column header, kind of like in the same position as the group drop area.

This solution adds summary row over the child tables and this is not what I was asking about!

Thx!

Administrator [Syncfusion]
Replied On September 14, 2006 07:03 AM

Hi James,

The attached sample shows how you can customize the order of the various sections in the GroupingGrid Control. It reorder the summaryrow section for each table and displays the SummarySection above the GroupCaptiondetails. The sample also shows how to derive custom elements from the Group and the ChildTable and how to hook them into a customized Engine object

http://www.syncfusion.com/Support/user/uploads/GGCSummaryAtTop_8cf810d0.zip

Let me know if this helps.
Thanks,
Haneef

jamesb
Replied On September 14, 2006 10:53 PM

Haneef :

This is almost what I was looking for. The only problem is that these multiple summary rows are being repeated or display for child tab les also. I only want to display this series of summary rows ONCE at the top of the grid, just BEFORE the column header.

>Hi James,

The attached sample shows how you can customize the order of the various sections in the GroupingGrid Control. It reorder the summaryrow section for each table and displays the SummarySection above the GroupCaptiondetails. The sample also shows how to derive custom elements from the Group and the ChildTable and how to hook them into a customized Engine object

http://www.syncfusion.com/Support/user/uploads/GGCSummaryAtTop_8cf810d0.zip

Let me know if this helps.
Thanks,
Haneef

Administrator [Syncfusion]
Replied On September 18, 2006 12:55 AM

Hi James,

If you don''t want to display the summary row in a group, you can comment/delete the CreateSummarySection in a OnInitializeSections method of the GroupingGroup class. Below is a code snippet.

protected override void OnInitializeSections(bool hasRecords, SortColumnDescriptorCollection fields)
{
// Summary
//this.Sections.Add(this.ParentTableDescriptor.CreateSummarySection(this));
//You required section here....

}

Sample : http://www.syncfusion.com/Support/user/uploads/GGCSummaryAtTop_9a31f33c.zip

Thanks,
Haneef

jamesb
Replied On September 18, 2006 12:19 PM

You guys rock! I''ve never seen customer service so awesome as you guys have provided!

Kunal Shah
Replied On September 3, 2011 03:10 AM

None of the links or zip files are opening, can you please provide the link to sample files. We would like to implement somthing on similar lines.

Kunal


Asarudheen S [Syncfusion]
Replied On September 19, 2011 10:10 AM

Hi Kunal,

Thanks for your interest in Syncfusion Products.


The summary row get displayed after record details by default. If you would like to display it before the record details, the following setting can be handled.


gridGroupingControl1.TopLevelGroupOptions.SummaryRowPlacement = GridSummaryRowPlacement.BeforeDetails;




Let us know if you have any further concerns.

Regards,
Asarudheen.


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.

;