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

Field ordering in GridControl

Question connected with GridControl.
How can I change the order of fields in the GridControl.
For example I want to change position of the first field of grid(From first to second). The first field will be of second position and second will be on the first position.

1 Reply

AD Administrator Syncfusion Team April 10, 2007 11:15 AM UTC

You can use the GridControl.Cols.MoveRange to reorder columns in a GridControl. To move the first column to the second column, try:

this.gridControl1.Cols.MoveRange(1, 2);

Loader.
Live Chat Icon For mobile
Up arrow icon