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.

how to programatically move col to different location in GGC?

Thread ID:

Created:

Updated:

Platform:

Replies:

79907 Mar 3,2009 04:52 PM Mar 5,2009 07:12 AM Windows Forms 1
loading
Tags: GridControl
David Cui
Asked On March 3, 2009 04:52 PM


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.

david


Nisha Arockiya A [Syncfusion]
Replied On March 5, 2009 07:12 AM

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:
http://files.syncfusion.com/samples/Grid.Windows/GGC_MoveColumns.zip

Let me know if this serve your needs.

Regards,
Nisha.


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.

;