Category / Section
How to group a column in WinForms GridGroupingControl using code?
1 min read
Grouping
In order to group a column in code behind, the GroupedColumns property can be used.
C#
//adding grouped columns this.gridGroupingControl1.ShowGroupDropArea = true; //Use the “MappingName” (which is the name of the column at the data table). this.gridGroupingControl1.TableDescriptor.GroupedColumns.Add("B");
VB
'adding grouped columns Me.gridGroupingControl1.ShowGroupDropArea = True 'Use the “MappingName” (which is the name of the column at the data table). Me.gridGroupingControl1.TableDescriptor.GroupedColumns.Add("B")
Screenshot:
Samples:
C#: Grouped_Column
VB: Grouped_Column
Reference link: https://help.syncfusion.com/windowsforms/gridgrouping/grouping