Home Forums WinForms controls Xceed Grid for WinForms Grouping columns programatically Reply To: Grouping columns programatically

User (Old forums)
Post count: 23064

 Here is an example :


Group group1 = new Xceed.Grid.Group();


GroupManagerRow groupManagerRow1 = new Xceed.Grid.GroupManagerRow();

group1.Collapsed =


group1.GroupBy =


group1.HeaderRows.Add( groupManagerRow1 );

gridControl1.GroupTemplates.Add( group1 );


BTW, a good trick to learn how to do things programmatically is do to them in the designer, then look at the code that was generated, and then reproduce it in code.

Imported from legacy forums. Posted by André (had 558 views)