This is a migrated thread and some comments may be shown as answers.

How to change the order of the aggregates in the group row ?

1 Answer 31 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Cyril
Top achievements
Rank 1
Cyril asked on 12 Sep 2011, 02:29 PM
Hi,
I have two aggregates on my raggridview:

column1.AggregateFunctions.Add(new CountFunction { ResultFormatString = "Total = {0}" });
column2.AggregateFunctions.Add(new SumFunction { ResultFormatString = "Sum= {0}" });

My column1 is define first in the column list, so when I group a column, the Count function is displayed first.

Total = 25 , Sum = 50

I want to switch the position, and I want the Sum first, how can I do that ?

Sum = 50 , Total = 25

Thank you !

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 05 Oct 2011, 08:02 AM
Hello Cyril,

Would you take a look at this forum thread ? You can try a similar approach, but instead of defining the aggregates you want to be displayed, you can change the order they are inserted in the new collection - newAggregates.

 
Kind regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Cyril
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or