QGrid
![]() |
![]() ![]() |
QG_RevealCell(areaRef; cellIndex):errorCode | |||
![]() |
areaRef | Longint | QGrid area reference |
![]() |
cellIndex | Longint | Cell index |
![]() |
error | Longint | Error result |
Reveals a specific cell of a QGrid area. The contents of the area will scroll automatically so that the specified cell will come into view.
Parameter areaRef is the QGrid area reference. If areaRef is not a valid QGrid area reference, qg_paramErr error is returned.
Parameter cellIndex specifies the index of the target cell. If cellIndex is out of range, qg_CellIndexErr error is returned.
Example
C_LONGINT($cellIndex) $cellIndex:=Num(Request("Cell number to reveal:")) If (OK # 0) $err:=QG_RevealCell (xGrid;$cellIndex) If ($err # qg_noErr) ` Handle the error End if End if |
Related commands
QG_SetSelectionOptions | Sets the user selection options for a QGrid area |
QG_GetSelectionOptions | Returns the user selection options for a QGrid area |