Fired after the current cell changes to a different cell.
Public Event AfterRowColChange(ByVal OldRow As Long, ByVal OldCol As Long, ByVal NewRow As Long, ByVal NewCol As Long)
Grid Object
The following parameters are available:
Parameter | Description |
OldRow | Row number of cell losing the focus. |
OldCol | Column number of cell losing the focus. |
NewRow | Row number of cell receiving the focus. |
NewCol | Column number of cell receiving the focus. |
This event is fired after the CurrentRowIndex or CurrentColIndex properties change, either as a result of user actions (mouse or keyboard) or through code.
This event is useful if you want to display additional information about the currently selected row, column, or cell. To perform validation or prevent certain cells from being selected, use the BeforeRowColChange and BeforeSelChange events instead.