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

How do I change column display order in the GridGroupingControl?

Platform: ASP.NET Web Forms (Classic) |
Control: GridGroupingControl |
Published Date: April 30, 2011 |
Last Revised Date: July 10, 2019

Clicking on the Columns (or VisibleColumns) property of the Grid's TableDescriptor launches the GridColumnDescriptor Collection Editor, where you select a column and click on the Up or Down arrow to rearrange the display order.

To programatically change the display order of columns in the Grid:

C#

//Make the Col4 to be the first column to be displayed in the grid

this.GridGroupingControl1.TableDescriptor.VisibleColumns[0].Name = "Col4";

VB

'Make the Col4 to be the first column to be displayed in the grid

Me.GridGroupingControl1.TableDescriptor.VisibleColumns(0).Name = "Col4"

ADD COMMENT
You must log in to leave a comment
Comments
Enzo
Aug 10, 2017

It change the column name, not the order.

Reply
ali
Aug 11, 2017

Hi,

How can I receive an event when the order of a column changes .to save the new order in a file.

thanks

Reply
ali
Aug 11, 2017

in Gridgroupingcontrol ???

Reply
Nathan Cole
Jun 12, 2018

This is changing column name not display order.

Reply

Please sign in to access our KB

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

Up arrow icon

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