GridGroupingControl DataSource reset

How do I reset the datasource for a Winform gridgroupingcontrol?
When I do that, the columns don't change but the number of rows from the datasource does.
So the columns do NOT reflect the data column names of the new datasource.
thanks!

2 Replies

AD Administrator Syncfusion Team October 18, 2006 10:12 AM UTC

Hi Allen,

Please try the code below to reset the datasource for the GridGroupingControl.

this.gridGroupingControl1.DataSource = null;
this.gridGroupingControl1.ResetTableDescriptor();
this.gridGroupingControl1.DataSource = newdatasource;
this.gridGroupingControl1.Refresh();

Regards,
Rajagopal


AF Allen Foster October 18, 2006 01:31 PM UTC

Thanks! That did the trick.

>Hi Allen,

Please try the code below to reset the datasource for the GridGroupingControl.

this.gridGroupingControl1.DataSource = null;
this.gridGroupingControl1.ResetTableDescriptor();
this.gridGroupingControl1.DataSource = newdatasource;
this.gridGroupingControl1.Refresh();

Regards,
Rajagopal

Loader.
Up arrow icon