Rows

This property returns and sets the total number of rows in a Grid control.

Syntax

object.Rows [= value]

Parameters

object
Object expression that evaluates to a Grid control.
value
Long. Numeric expression that specifies the number of rows.

Remarks

You can use this property to expand and shrink a Grid control dynamically at run time.

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

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