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
close icon

GGC automatically populates TableDescriptor.Columns

When the .DataSource/.DataMember properties are set on the GridGroupingControl the TableDescriptor.Columns collection is automatically populated, based on the bound DataTable, if the .Columns collection is empty. How can I prevent this behavior?

1 Reply

AA Arulraj A Syncfusion Team May 18, 2010 12:50 PM UTC

Hi Myles,

Thanks for your interest in Syncfusion Products.

To avoid auto population of collections you need to modify the tableDescriptor’s column. Using the following code, this can be achieved.


//To avoid auto population of collections
this.gridGroupingControl1.TableDescriptor.Columns.Modify(); //Or use this code: this.gridGroupingControl1.TableDescriptor.Columns.Clear();
//Use these codes to reset the autopopulate, After this only the datasource will be loaded again at any time.
//this.gridGroupingControl1.TableDescriptor.Columns.Reset();//Or use this code: this.gridGroupingControl1.ResetTableDescriptor();


Here is a sample for your reference.
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=GGCTableDescriptor-1103592224.zip

Regards,
Arulraj.A

Loader.
Live Chat Icon For mobile
Up arrow icon