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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Column Order in Datagrid

Thread ID:





355 Jun 11,2002 04:28 AM UTC Jun 11,2002 07:51 AM UTC WinForms 1
Tags: FAQ
Administrator [Syncfusion]
Asked On June 11, 2002 04:28 AM UTC

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 07:51 AM UTC

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.

Please sign in to access our forum

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

Live Chat Icon For mobile
Live Chat Icon