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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl Column Ordering

Thread ID:





88461 Jul 24,2009 02:33 PM UTC Jul 27,2009 01:08 PM UTC WinForms 1
Tags: GridControl
Devin Kittle
Asked On July 24, 2009 02:33 PM UTC

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.

Rajadurai C [Syncfusion]
Replied On 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.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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