Hi,
I have a groupped gridview with summary row that calculate subtotal of each groups
and one grand Total at end of Grid (after set : gridview1.MasterTemplate.ShowTotals = true)
But In my senario I need one summery row for each groups and three grand Total at end.
Is it possible?
Thanks
1 Answer, 1 is accepted
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 12 Jul 2018, 12:54 PM
Hello, Mehdi,
By design, you will have a summary row for each group in the grid. If you enable the ShowTotal property, a grand total outside all groups will be shown. However, this grand total will be only one because you have added only one summary item. if you need to have several grand total, it is necessary to add several GridViewSummaryRowItems and GridViewSummaryItems. However, it would be necessary to hide the summary items in the groups. Here is demonstrated a sample code snippet which result is illustrated in the below screenshot. Note that this is just a sample approach and it may not cover all possible cases. Feel free to modify it in a way which achieves your requirement best: