Cols, Rows

Returns or sets the total number of columns or rows in a Grid.

Syntax

object.Cols [= value ]

object.Rows [= value ]

The Cols, Rows syntax has these parts:

Part Description
object An object expression that evaluates to an object.
value Long. A numeric expression specifying the number of columns or rows.

Remarks

You can use these properties to expand and shrink Grid dynamically at run time.

The minimum number of rows and columns is 0. The maximum number is limited by the memory available on your computer.

The value of Cols must be at least one greater than the value of FixedCols, unless they are both set to zero. The value of Rows must be at least one greater than the value of FixedRows, unless they are both set to zero.