Summary text in group caption

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


3 Replies

JO Johnson Syncfusion Team April 16, 2008 11:47 PM UTC

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





TE test April 17, 2008 09:46 AM UTC

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




JO Johnson Syncfusion Team April 18, 2008 12:11 AM UTC

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



Loader.
Up arrow icon