|
CGridCtrl:SelectSheet,
CGridView:SelectSheet
The SelectSheet method selects the grid
sheet to be top-most in the CGridCtrl. This method requires
the grid to have more than 1 sheet.
Syntax
CGridCtrl:SelectSheet(nTabIndex)
where
nTabIndex is the index of the sheet,
between 1 and the number of sheets.
Example
The following script selects tab number 2 to be
shown top-most in the grid:
|
V = attach_gridview()
|
|
|
G = new_gridctrl(V)
|
|
|
if G:GetNumSheets() > 1
then
|
|
|
G:SelectSheet(2)
|
|
|
end
|
|
Related Topics
CGridCtrl class
GetNumSheets
Mira Pro x64 Script User's Guide, v.8.76 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.
|