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

GridGroupnigControl - Changing order of columns

Thread ID:





46290 Jul 10,2006 04:13 PM UTC Jul 10,2006 05:32 PM UTC WinForms 1
Tags: GridControl
Clive Hill
Asked On July 10, 2006 04:13 PM UTC

Hi, I build up a GridGroupingControl and then want to apply some preferences to change the order of the columns. I''ve tried using GGC.TableDescriptor.Columns Remove and Insert methods, I''ve also tried GGC.TableModel.Cols.MoveRange but neither seem to work. (When I examine in TableDescriptor columns variable I see the order has changed, but when I view the result it hasn''t) What''s the best way to manage this?

Administrator [Syncfusion]
Replied On July 10, 2006 05:32 PM UTC

Hi Vito, To rearrange the columns of the grid, you need to use the VisibleColumns.Move(). The Move method moves the element within the visible column collection. Here is some code snippet this.gridGroupingControl1.TableDescriptor.VisibleColumns.Move(1,3); Please let me know if this helps. Best Regards, Haneef


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