Cols

[property icon] Cols

Specifies the number of columns

Integer property

Applies to: Grid


>

Cols

This property is used to specify the number of columns in a Grid control, for example:

 .GridControl1.cols = 10

Increasing the number of columns will add additional blank columns to the right hand side of the grid. Decreasing the number of columns will cause cells beyond the new number of columns to be deleted.

See also

Grid methods, properties and events.