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 to make my ''X'' column always be as first column

Thread ID:





48259 Aug 23,2006 02:04 PM UTC Aug 24,2006 05:19 AM UTC WinForms 1
Tags: GridControl
Vijaya Kumar Reddy
Asked On August 23, 2006 02:04 PM UTC


I want to make sure my ''X'' column should be always available at the first position in Grid Grouping Control. The first position of this column should NOT be allowed to Change or occupied by any other column.

Thanks for the help in advance.


Administrator [Syncfusion]
Replied On August 24, 2006 05:19 AM UTC

Hi Vijay,

Use the TableDescriptor.Columns property to manages column descriptors in the grid. It allows you to add and remove columns, moves column at specific position. Below the code snippet.

//Form Load event.
int index = this.gridGroupingControl1.TableDescriptor.NameToField("ColumnName");

this.gridGroupingControl1.TableDescriptor.Columns.Changed +=new Syncfusion.Collections.ListPropertyChangedEventHandler(Columns_Changed);

private void Columns_Changed(object sender, Syncfusion.Collections.ListPropertyChangedEventArgs e)
if( e.Action == Syncfusion.Collections.ListPropertyChangedType.Move )
GridColumnDescriptorCollection columns = sender as GridColumnDescriptorCollection;

if( columns != null && columns[0].Name != "ComboList")
columns.Changed -=new Syncfusion.Collections.ListPropertyChangedEventHandler(Columns_Changed);

GridColumnDescriptor col = columns[ "ColumnName" ];

columns.Changed +=new Syncfusion.Collections.ListPropertyChangedEventHandler(Columns_Changed);

Here is a sample.

Let me know if this is not what you wanted.
Best Regards,


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

or the page will be automatically redirected to 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