How to Group Columns Programmatically in WinForms GridGroupingControl
18 Nov 20181 minute to read
To group a column programmatically, use the following code.
//Shows the GroupDropArea.
this.gridGroupingControl1.ShowGroupDropArea = true;
//Groups by "Col1".
this.gridGroupingControl1.TableDescriptor.GroupedColumns.Add("Col1", ListSortDirection.Ascending);'Shows the GroupDropArea.
Me.gridGroupingControl1.ShowGroupDropArea = True
'Groups by "Col1".
Me.gridGroupingControl1.TableDescriptor.GroupedColumns.Add("Col1", ListSortDirection.Ascending)