CGridView:GetNumRows
The GetNumRows method returns the number of grid rows. Note that the number of rows is buffered to a multiple of 256. For example, if you request 50 rows using the GridParams table at the time of creation, the grid will get 256 rows. Similarly, creating the grid with 260 rows will result in a grid having 512 rows. To determine the maximum non-blank row containing data, use GetMaxRow.
nRows = CGridView:GetNumRows()
Where nRows is the number of rows in the grid.
On failure, 0 is returned.
The following script returns the number of rows in a grid window:
|
-- attach the top-most grid window |
|
-- return the number of rows |
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.