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.

GridListControl - Column Display Order

Thread ID:

Created:

Updated:

Platform:

Replies:

54540 Jan 10,2007 08:22 PM Jan 10,2007 11:18 PM Windows Forms 1
loading
Tags: GridControl
Sreenivasa Ponnaluru
Asked On January 10, 2007 08:22 PM

How to change the column display order in the GridListControl.

Administrator [Syncfusion]
Replied On January 10, 2007 11:18 PM

Hi Sreeni,

You can derive GridListControl and override the CreateGridColumn member. A column is passed into this member as a parameter. Before calling the baseclass, modify this column in such a manner as to create the columns in the order you want to see them. So, for example, if you want to swap columns 1 & 2, then code such as this should do it.

public class MyGridListControl : GridListControl
{
public override void CreateGridColumn(PropertyDescriptor pd, int column)
{
if(column == 1)
column = 2;
else if(column == 2)
column = 1;

base.CreateGridColumn(pd, column);
}
}


Best Regards,
Haneef

CONFIRMATION

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.

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.

;