Cursor

The grid has a cursor, which is the cell defined by the Row and Col properties. The cursor displays a focus rectangle while the grid is active. The user may move the cursor with the keyboard or the mouse, and edit the contents of the cell if the grid is editable. Changing the Row and Col properties in code also moves the cursor.

The Row property may be set to values between zero and Rows - 1 to select a row, or to -1 to hide the cursor. The Col property may be set to values between zero and Cols - 1 to select a column, or to -1 to hide the cursor.

Setting the Row and Col properties does not ensure that the new cursor is visible. For that, use the ShowCell method.