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.

GridGroupnigControl - Changing order of columns

Thread ID:

Created:

Updated:

Platform:

Replies:

46290 Jul 10,2006 12:13 PM Jul 10,2006 01:32 PM Windows Forms 1
loading
Tags: GridControl
Clive Hill
Asked On July 10, 2006 12:13 PM

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 01:32 PM

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

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.

;