CursorMove

[event icon] CursorMove() Event

Called when the user moves the selection box to another cell

Applies to: Grid


>

CursorMove

Once the grid control is in focus the North, South, East and West arrow keys can be used to move the user cell selection rectangle (the cursor) around the grid control. This event is triggered when the cursor is moved to another cell. The location of the cursor can be determined with the CursorRow and CursorCol properties.

For example, the following would update the current location of the cursor in the static text control txtControl1:

 - DEFEVENT Form1.GridControl1.CursorMove()
        LOCAL DIM Position$100, row$4, col$4
        CONVERT ..CursorRow TO row$, (####)
        CONVERT ..CursorCol TO col$, (####)
        Position$ = "Row :" & row$ & ", Col :" & col$
        .txtControl1.Text$ = Position$
   END EVENT

See also

Grid methods, properties and events.