Fired before the selected range changes.
Public Event BeforeSelectionChange As BeforeSelectionChangeEventHandler
Grid Object
The following parameters are available:
Parameter | Description |
NewFirstRow | The first row's number of the new selection. |
NewFirstCol | The first column's number of the new selection. |
NewLastRow | Ths last row's number of the new selection. |
NewLastCol | The last column's number of the new selection |
Cancel | Set this value to True to prevent selection change. |
To prevent the selection of a range, you also need to handle the BeforeRowColChange event, which is fired before the CurrentRowIndex and CurrentColIndex properties change.