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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl DataSource reset

Thread ID:

Created:

Updated:

Platform:

Replies:

50719 Oct 17,2006 10:18 PM UTC Oct 18,2006 01:31 PM UTC Windows Forms 2
loading
Tags: GridControl
Allen Foster
Asked On October 17, 2006 10:18 PM UTC

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!

Administrator [Syncfusion]
Replied On 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

Allen Foster
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;