QG_RevealCell(areaRef; cellIndex):errorCode
areaRef Longint QGrid area reference
cellIndex Longint Cell index
error Longint Error result

Reveal a cell in the visible part 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.



$cellIndex:=Num(Request("Cell number to reveal: "))

If ((OK=1) & ($cellIndex>0))
   $err:=QG_RevealCell (xGrid;$cellIndex)
End if 

Related commands

QG_SetSelectionOptions Set the user selection options for a QGrid area
QG_GetSelectionOptions Get the user selection options for a QGrid area