Generated any time the user moves the cursor to a new grid control cell using the keyboard. EVENT-DATA-1 contains the column number of the cell being moved to, and EVENT-DATA-2 contains the record number of that cell. For convenience, the properties X and Y are set to match these values for the duration of the event. You can determine which cell the user is moving from by inquiring CURSOR-X and CURSOR-Y.
You can prevent the user from entering the cell by setting EVENT-ACTION to EVENT-ACTION-FAIL. If you do this, the cursor remains in its previous cell. You can direct the cursor to a different cell by setting EVENT-ACTION to EVENT-ACTION-FAIL and then modifying CURSOR-X and CURSOR-Y directly.