Category / Section
How to set the datasource in the WinForms GridGroupingControl?
1 min read
Data source
GridGroupingControl has DataSource and DataMember properties that you set to specify its datasource. Refer to the following code examples for setting DataSource to GridGroupingControl.
C#
//Setting DataSource to GridGroupingControl this.gridGroupingControl1.DataSource = dt;
VB
'Setting DataSource to GridGroupingControl Me.gridGroupingControl1.DataSource = dt
Figure 1: DataSource assigned for GridGroupingControl rows and columns.
Samples:
C#: DataSource-C#
VB: DataSource-VB
Reference link: https://help.syncfusion.com/windowsforms/gridgrouping/data-binding
Note:
You can also set these properties within the Designer.