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

how to programatically move col to different location in GGC?


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


1 Reply

NA Nisha Arockiya A Syncfusion Team 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:
http://files.syncfusion.com/samples/Grid.Windows/GGC_MoveColumns.zip

Let me know if this serve your needs.

Regards,
Nisha.


Loader.
Live Chat Icon For mobile
Up arrow icon