Articles in this section

How to set the datasource in the WinForms GridGroupingControl?

Data source


WinForms GridGroupingControl
 has DataSource and DataMember properties that you set to specify its datasource. Refer to the following code examples for setting DataSource to GridGroupingControl.


//Setting DataSource to GridGroupingControl
this.gridGroupingControl1.DataSource  = dt; 
'Setting DataSource to GridGroupingControl
Me.gridGroupingControl1.DataSource = dt

 The screenshot below illustrates the data source assigned for rows and columns.

Datasource assinged for rows and columns in GridGroupingControl


     Figure
1: DataSource assigned for GridGroupingControl rows and columns.


Samples:

C#: DataSource-C#

VB: DataSource-VB

 

Reference Link: DataBinding

 

Note:

You can also set these properties within the Designer. 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied