You need to create a group, specify on which column it will group, and add it to the GroupTemplate.
Group group1 = new Group();
group1.GroupBy = “Discontinued”;
GroupManagerRow groupManagerRow1 = new GroupManagerRow();
group1.HeaderRows.Add( groupManagerRow1 );
gridControl1.GroupTemplates.Add( group1 );
To update groups once you have changed the template, use the UpdateGrouping method on the GridControl.
Note that when you want to know how to do specific task like this one, you can use the designer to do it (e.g. drop a column header in the GroupByRow at design time), then look at the code automatically generated by the grid. Afterward, simply reproduce this in code, and you should be up and running.
Imported from legacy forums. Posted by André (had 3048 views)