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

GridGroupingControl Column Ordering

Using a GridGroupingControl with a datatable as the datasource. When binding the table, the rows appearing in the grid are set up backwards.

Is there a way to manually set the ordering of columns in the grid to be displayed from the data table?

There are also some rows that I would like to omit completely from the user's view... so this would solve that problem as well.

1 Reply

RC Rajadurai C Syncfusion Team July 27, 2009 01:08 PM UTC

Hi Devin,

Thanks for your interest in Syncfusion Products.

To manually set the column display order in gridgroupingcontrol, please follow the steps mentioned below.
1) Bind datatable to gridgroupingcontrol as datasource.
2) Create GridColumnDescriptor object for each column added in grid.
3) Clear the tabledescriptor columns.
4) Add the created objects in own order to the tabledescriptor columns collection.

Here is a sample for your reference in which this has been implemented.
http://files.syncfusion.com/support/samples/Grid.Windows/7.3.0.20/F88461.zip

Regards,
Rajadurai

Loader.
Live Chat Icon For mobile
Up arrow icon