MoveCursor

[method icon] MoveCursor(iRow, iCol)

Moves the user selection cell to the specified cell

iRow Integer Row to select
iCol Integer Column to select

Applies to: Grid


>

MoveCursor

Int1      Row value
Int2      Column value

This method is used to move the user selection rectangle to the specified row and column within a Grid control. For example, the following would move the selection rectangle to row 5, column 6:

.GridControl1.MoveCursor(5, 6)

Note that the CursorRow and CursorCol properties can be used to retrieve the current location of the user selection rectangle.

Specifying a row and column position of zero will remove the current user selection.

See also

Grid methods, properties and events.