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 programatically move col to different location in GGC?

Thread ID:





79907 Mar 3,2009 09:52 PM UTC Mar 5,2009 12:12 PM UTC WinForms 1
Tags: GridControl
David Cui
Asked On March 3, 2009 09:52 PM UTC

i know we can drag drop the column to move.
is there any good way to move col to another col's location ? please advice.
thx. as subject.


Nisha Arockiya A [Syncfusion]
Replied On March 5, 2009 12:12 PM UTC

Hi David,

Thanks for your interest in Syncfusion Products.

In a GridGroupingControl, the display order of the columns in the grid is determined by the grid.TableDescriptor.VisibleColumnsCollection. Changing the order of the columns in this collection will change the display order on the screen. Please refer to the code snippet.

this.gridGroupingControl1.TableDescriptor.VisibleColumns.Move(source, destination);

Here is a small sample:

Let me know if this serve your needs.



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