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.

How do I change column display order in the GridGroupingControl?

 

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"

Sample:

http://websamples.syncfusion.com/samples/KB/Grid.Web/6.1.0.34/GGCDisplayOrder/main.htm

Article ID: Published Date: Last Revised Date: Platform: Control:
509 04/30/2011 07/10/2014 ASP.NET Web Forms (Classic) GridGroupingControl
Tags:
Did you find this information helpful?
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
Add Comment
You must log in to leave a comment

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.