We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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.
Live Chat Icon For mobile
Up arrow icon