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
close icon

GridGroupnigControl - Changing order of columns

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?

1 Reply

AD Administrator Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon