AD
Administrator
Syncfusion Team
June 10, 2004 09:52 AM UTC
Hi Ben,
there are multiple ways to rearrange columns:
The column order can be modified by adding columns in the the order you want them to appear to the GridTableDescriptor.VisibleColumns collection.
Example:
this.groupingGrid1.TableDescriptor.VisibleColumns.Add("CustomerID");
this.groupingGrid1.TableDescriptor.VisibleColumns.Add("CompanyName");
Or you could also add them in the order you want them to appear to the GridTableDescriptor.Columns collection (see the CategoryView example).
The designer also lets you modify the order of columns through collection editors when you click on the ellipsis button of the "Columns" or "VisibleColumns" collection. The "Preview and Edit" mode in design time also lets you drag columns around.
Stefan