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

grouping question

1 Answer 73 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Robbie
Top achievements
Rank 1
Robbie asked on 18 Jul 2008, 03:39 PM
Hi there,
I want to programmatically add grouping to my datagrid like so:

radGridView1.MasterGridViewTemplate.GroupByExpressions.Add("[PeriodeID] Group By [PeriodeID]"); 


When I run this the datagrid isn't grouped by the column, only sorted by the column.
When I drag and drop the column the datagrid does get a proper grouping header.
What am i missing?

Tanx!

1 Answer, 1 is accepted

Sort by
0
Robbie
Top achievements
Rank 1
answered on 21 Jul 2008, 09:25 AM
I figured it out:
you have to use a
GridGroupByField add it to a GridGroupByExpression and add that one to the MasterGridViewTemplate.GroupByExpressions.AddRange
Tags
GridView
Asked by
Robbie
Top achievements
Rank 1
Answers by
Robbie
Top achievements
Rank 1
Share this question
or