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.

Summary text in group caption

Thread ID:

Created:

Updated:

Platform:

Replies:

72996 Apr 15,2008 09:38 AM Apr 17,2008 08:11 PM Windows Forms 3
loading
Tags: GridControl
test
Asked On April 15, 2008 09:38 AM

Hi. I have a group that contains few rows and each of these some children rows. The group has a summary row that calculates the sum of a couple of columns. Is there any way to get the group caption to contain the summary text of some column?

thx


Johnson [Syncfusion]
Replied On April 16, 2008 07:47 PM

Hi John,

Thank you for using Syncfusion products.

To add a summary in Caption you need to use below code snippet

this.gridGroupingControl1.ChildGroupOptions.ShowCaptionSummaryCells = true;
this.gridGroupingControl1.ChildGroupOptions.ShowSummaries = false;
this.gridGroupingControl1.ChildGroupOptions.CaptionSummaryRow = "Sum";
this.gridGroupingControl1.ChildGroupOptions.CaptionText = "{RecordCount} Items";

Refer below browser sample for reference.

{Install Drive}\Syncfusion\EssentialStudio\6.1.0.34\Windows\Grid.Grouping.Windows\Samples\2.0\Summaries\SummaryIncaption\cs

Please let me know for further assistance.

Best regards,
Johnson




test
Replied On April 17, 2008 05:46 AM

Thanks but i was actually looking to have it as part of the caption itself. So instead of saying "2 items" i would like it to say ""

Thanks,
Yannis



Johnson [Syncfusion]
Replied On April 17, 2008 08:11 PM

Hi John,

Thank you for your update.

Here I have attached minimal sample that demonstrates how to add a Caption summary with Text. Please refer the attached sample.

Please let me know if you need further assistance.

Sample:

http://websamples.syncfusion.com/samples/Grid.Windows/F72996/main.htm


Best regards,
Johnson



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.

;