CGridCtrl:GetNumRows, CGridView:GetNumRows
The GetNumRows method returns the number of grid rows. Note that the number of rows is buffered to a multiple of 64. For example, if you request 50 rows using the GridParams table when the CGridView or CGrid is created, the grid will actually 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 = CGridCtrl: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 |
|
-- create a CGridCtrl for the window |
|
-- return the number of rows |
Mira Pro x64 Script User's Guide, v.8.77 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.