CGridCtrl:SetNumCols, CGridView:SetNumCols


The SetNumCols method sets the number of columns in the grid. This method updates the initial property of the CGridView or CGrid defined by the value of GridParams.nCols.

Syntax

CGridCtrl:SetNumCols( nCols )

bullet.gif    Where nCols is the number of columns for the grid.

Example

The following script sets the number of columns 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:SetNumCols( 15 )

-- sets the number of columns to 15

Related Topics

CGridCtrl class

SetNumRows

AddSheet

GetNumCols


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