CGrid:SetNumRows
The SetNumRows method specifies the number of rows in the current grid sheet. The number of rows may differ between sheets.
G:SetNumRows( nRows )
where
nRows is the number of rows to set in the current sheet.
The following script creates a grid and increases the number of rows at a later time:
|
-- new grid with 3 cols, 10 rows, 1 sheet |
|
-- result: rows = 10 |
|
-- Select Sheet 3 (out of range) |
|
-- result: rows = 0 (sheet out of range) |
|
-- change to 6 rows |
|
-- result: rows = 6 |