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

How to format Group header

1 Answer 39 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gen
Top achievements
Rank 1
Gen asked on 14 Dec 2011, 08:49 PM
Hello,

I have a gridView with some custom columns: | Name | Department | hours_week1 | hours_week2 | hours_week3 | hours_week4 | ...
Columns hours_week have an aggregate function as follow:
sumFunction = new SumFunction();
sumFunction.SourceField = radTimeLineGridView.Columns[i].UniqueName;
sumFunction.ResultFormatString = "{0:f2}";
radTimeLineGridView.Columns[i].AggregateFunctions.Add(sumFunction);

 When I group by the Department column, the sum of each column is shown in the group header, but it's not following the columns layout. Please see attached image.
How can I force the header to be formatted as the columns?

Also, I want to hide/show some columns. How can I make sure the group headers hide/show the same values? Right now, they show everything, even if some columns are hidden.

Thanks,
Gen

1 Answer, 1 is accepted

Sort by
0
Janick Ross
Top achievements
Rank 1
answered on 12 Jan 2012, 04:23 PM
See this post for solution.
Tags
GridView
Asked by
Gen
Top achievements
Rank 1
Answers by
Janick Ross
Top achievements
Rank 1
Share this question
or