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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Datagrid Grouping with GroupCaption, ItemCount and Sum

Thread ID:





115012 Dec 18,2013 03:20 PM UTC Dec 20,2013 12:00 PM UTC WinRT 1
Tags: General
Michel Martínez
Asked On December 18, 2013 03:20 PM UTC

Hello there i m trying ti achive a cenario, where i can have grouping in datagrid by 2 leves, First by countr, then by Brand, and in the grooup line of the grid, i want to show the groupName, and the item count and a item sum of oone particular field. 
"Group key name - Count(item) - Sum(item.field)" 

After trying diffrent methods i don0t see how to achive this in correct way: 

I tryed using the CaptionSummaryRow like this, but this doesn0t let me show the group key , so i don't know what it's the group i am expandin, this only shows the total or the sum:

                    <syncfusion:GridSummaryRow Name="totalSummary"  ShowSummaryInRow="True"  Title="{} {TotalCountSummary} - {TotalSumSummary}">
                                                      Format="Garrafas:  '{Count:d}'"

                                                      Format="Valor:  '{Sum:c}'"

My second aproach  was following a post: in the forum and trying to create a custom style with converter like so: 

But this doesnt work whe  group using 2 fields :/

any tips on how i can achive this?! 


Riyaj Ahamed I [Syncfusion]
Replied On December 20, 2013 12:00 PM UTC

Hi Michel,


Thanks for contacting Syncfustion support.


We have prepared a sample to meet your requirement and the sample can be downloaded from the following location.


Sample: SfGrid.zip


Please let us know if this helps.



Riyaj Ahamed I


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon