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

Manually change ordering of columns in ggc that is bound to a datatable

This should be simple enough, but I can't get it to work in a consistent fashion.

I have a DataTable with the following columns in this order (col_A, col_B, col_C, col_D, col_E).

I bind this DataTable to the ggc. However, I want to display the columns in the ggc in this order and leave out some columns (col_B). For example, I want this ordering. I also want to customize the columns as I add them to the grid...

col_E, col_A, col_D, col_C


I am aware that VisibleColumns.Add + VisibleColumns.Remove should accomplish this, but what is the order in which I accomplish this?

Do I databind before I do add/remove columns or is it the other way around?


1 Reply

AD Administrator Syncfusion Team November 29, 2006 06:07 AM UTC

Hi James,

Sorry for the inconvenience caused.

Before looking into your forum, we would like to know about your licence information. Could you please verify your license details with sales team Or sandras@syncfusion.com.

Thanks for your patience.

Best Regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon