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

Hiding aggregate result in group header

2 Answers 296 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Perlom
Top achievements
Rank 1
Perlom asked on 14 Oct 2011, 04:11 AM
Hi,

I am using aggregate function to calculate sum of a certain column in my grid. However, the sum value is displayed both on the footer as well as the group header. How can I hide the value for m showing on the group header?

Also, I am doing the grouping programmatically, is there a way to hide the column that is grouping member from the showing in the grid? Currently, the group column displays its value in the group header as well as in the grid itself. I think it is sufficient to have the data on the header only. How can I achieve that?

Regards

2 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 14 Oct 2011, 07:55 AM
Hi Perlom,

You can set ShowHeaderAggregates property of GridVIewGroupRow to "False". You can take a look at this forum thread for a reference.
If you want to hide the column on which the grid is grouped, you can handle Grouping event for example, find the column from the ColumnGroupDescriptor and set its IsVisible property to "False".

Kind regards,
Maya
the Telerik team

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

0
Perlom
Top achievements
Rank 1
answered on 14 Oct 2011, 05:46 PM
That work... Thanks Maya for a prompt informative response :)


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