CGridCtrl:GotoCell, CGridView:GoToCell


The GotoCell method makes a specified grid cell the active cell.

Syntax

CGridCtrl:GotoCell( nCol, nRow )

bullet.gif    Where nCol, and nRow are the coordinates of the target cell.

The picture below shows a simple grid created by a script and filled with data. The GotoCell method was used to highlight the cell at column 5, row 3:

Example

The following script sends the grid cursor to the cell at (column 5, row 10):

V = attach_gridview()

-- attach a grid on the Mira desktop

G = new_gridctrl(V)

-- create a CGridCtrl for the window

G:GotoCell(5,3)

-- select cell (5,3)

Related Topics

CGridCtrl class


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