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.

Column Order in Datagrid

Thread ID:





355 Jun 11,2002 12:28 AM Jun 11,2002 03:51 AM Windows Forms 1
Tags: FAQ
Administrator [Syncfusion]
Asked On June 11, 2002 12:28 AM

The datagrid automatically arranges the columns in alphabetical order. Is there a way where I can set which column 0, column 1 is rather than displaying the columns in alphabetical order?

Clay Burch [Syncfusion]
Replied On June 11, 2002 03:51 AM

If you create a DataGridTableStyle, and then add DataGridColumnStyles to this tablestyle, the order in which you add the columnstyles will determine the order of display in the datagrid. There's a FAQ entry that discusses this: http://www.syncfusion.com/faq/winforms/search/764.asp Many other FAQs create columnstyles, adding them to a table style to be used in the grid. For example, the checkbox FAQ does this. If you add the styles in a different order, the column order will change also. http://www.syncfusion.com/faq/winforms/search/754.asp


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.