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.

Get summary in childgroup header

Thread ID:

Created:

Updated:

Platform:

Replies:

40155 Jan 26,2006 11:53 AM Jan 27,2006 10:34 AM Windows Forms 2
loading
Tags: Grouping
Administrator [Syncfusion]
Asked On January 26, 2006 11:53 AM

hy, i want if there is way to show the Sum ({Sum}) from a row summary in the childgroup header ({CategoryCaption}: {Category} - {RecordCount} - {Sum}) kind regards

Administrator [Syncfusion]
Replied On January 26, 2006 10:05 PM

Hi, here is some sample code that sets up a summary row, hides it and then references a summary in the caption text: GridSummaryRowDescriptor groupCaptionSummaryRow = new GridSummaryRowDescriptor("GroupCaption"); groupCaptionSummaryRow.Visible = false; GridSummaryColumnDescriptor countSummaryColumnDescriptor = new GridSummaryColumnDescriptor("CaptionCount"); countSummaryColumnDescriptor.SummaryType = SummaryType.Count; countSummaryColumnDescriptor.DataMember = "(Record)"; groupCaptionSummaryRow.SummaryColumns.Add(countSummaryColumnDescriptor); this.groupingGrid1.TableDescriptor.SummaryRows.Add(groupCaptionSummaryRow); this.groupingGrid1.ChildGroupOptions.CaptionText = "{CategoryName}: {Category} - {RecordCount} Items CustomSummary={GroupCaption.CaptionCount}"; this.groupingGrid1.TopLevelGroupOptions.CaptionText = "{TableName}: {RecordCount} Items CustomSummary={GroupCaption.CaptionCount}"; Stefan

Administrator [Syncfusion]
Replied On January 27, 2006 10:34 AM

hi, stefan let me tell that your are a good guy, this is work perfectly. kind regards. >Hi, > >here is some sample code that sets up a summary row, hides it and then references a summary in the caption text: > > > GridSummaryRowDescriptor groupCaptionSummaryRow = new GridSummaryRowDescriptor("GroupCaption"); > groupCaptionSummaryRow.Visible = false; > GridSummaryColumnDescriptor countSummaryColumnDescriptor = new GridSummaryColumnDescriptor("CaptionCount"); > countSummaryColumnDescriptor.SummaryType = SummaryType.Count; > countSummaryColumnDescriptor.DataMember = "(Record)"; > groupCaptionSummaryRow.SummaryColumns.Add(countSummaryColumnDescriptor); > this.groupingGrid1.TableDescriptor.SummaryRows.Add(groupCaptionSummaryRow); > > this.groupingGrid1.ChildGroupOptions.CaptionText = "{CategoryName}: {Category} - {RecordCount} Items CustomSummary={GroupCaption.CaptionCount}"; > this.groupingGrid1.TopLevelGroupOptions.CaptionText = "{TableName}: {RecordCount} Items CustomSummary={GroupCaption.CaptionCount}"; > > > >Stefan >

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.

;