ColumnOrder Property

Visual Studio .NET 2003

Specifies the relative order of column objects in a Grid control. Available at design time and run time.

Column.ColumnOrder[ = nExpr]

Property Values

Specifies the order of a column relative to other columns in the grid.


If a Grid contains five columns and you want the third column displayed last, set the ColumnOrder property of the third column to 5. The ColumnOrder setting for the fourth column becomes 3, the ColumnOrder setting for the fifth column becomes 4, and so on.

Note   ColumnOrder settings do not have to be sequential. There can be gaps. For example, if a Grid contains three columns, you can add a fourth and set its ColumnOrder property to 10.

See Also

Activate Event | Deactivate Event | ZOrder Method | ColumnCount Property | ColumnLines Property | ColumnWidths Property

Applies To: Column Object