BeforeSelectionChange Event

Fired before the selected range changes.

Syntax

Public Event BeforeSelectionChange As BeforeSelectionChangeEventHandler

Applies To

Grid Object

Parameters

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.

Remarks

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.

See Also

AfterSelectionChange Event