The SetActiveCell method allows the cursor to be repositioned to a specific cell of the DataGrid control as required.
DataGridObject.SetActiveCell(RowIndex, ColumnIndex)
Newlook Smartclient only.
The SetActiveCell method can not be called via the OnReceive or OnRefresh events of a form, instead the OnTimer event must be used.
RowIndex - (Integer, Required)
The row index of the cell to which the cursor is to be repositioned to. Note that the rows collection is a zero-based index.
ColumnIndex - (Integer, Required)
The column index of the cell to which the cursor is to be repositioned to. Note that the columns collection is a zero-based index.
No returns.
The following example will set the focus to a cell in the 1st column and 3 row of the grid control named MyGrid. VB SCRIPTSub SetCursorToCell
End Sub |
SetActiveControl method | EnsureVisisble method
© 2004-2021 looksoftware. All rights reserved.