Cols, Rows Properties
See Also Example
Determine the total number of columns or rows in a grid. The minimum is 1. The maximum number of rows is 2000; the maximum number of columns is 400.
[form.]grid.Cols[ = numericexpression ]
[form.]grid.Rows[ = numericexpression ]
You can use these properties to expand a grid dynamically at run time. A grid must have at least one non-fixed column and one non-fixed row.
Note The Cols, Rows properties are not the same as the Col, Row properties.
Col, Row Properties
Chapter 3, "Creating and Using Controls"