'Declaration Public Event BeforeRowColChange As RangeEventHandler
public event RangeEventHandler BeforeRowColChange
Event Data
The event handler receives an argument of type RangeEventArgs containing data related to this event. The following RangeEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel | Gets or sets a value indicating whether the new selection should be canceled. |
NewRange | Gets the range that will be selected after the event. |
OldRange | Gets the range selected before the event. |
Remarks
This event fires before the Row or Col properties change, either as a result of user actions or through code. It allows you to prevent the selection of certain cells, thus creating "protected" ranges on a grid.
BeforeRowColChange fires only when the Row or Col properties are about to change. To detect extended selections, you also need to handle the BeforeSelChange event.
See Also