CGridCtrl:SetNumRows, CGridView:SetNumRows


The SetNumRows method sets the number of rows in the grid. This method updates the initial property of the CGridView or CGrid defined by the value of GridParams.nRows.

Syntax

CGridCtrl:SetNumRows( nRows )

bullet.gif    Where nRows is the number of rows for the grid.

Example

The following script sets the number of rows in a grid window:

V = attach_gridview()

-- attach a grid on the Mira desktop

G = new_gridctrl(V)

-- create a CGridCtrl for the window

G:SetNumRows( 100 )

-- sets the number of rows to 100

Related Topics

CGridView class

SetNumCols

AddSheet

GetNumRows


Mira Pro x64 Script User's Guide, v.8.77 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.