Enables you to prevent row focus changes.
[DXCategory("Action")] public event RowAllowEventHandler BeforeLeaveRow
<DXCategory("Action")> Public Event BeforeLeaveRow As RowAllowEventHandler
The BeforeLeaveRow event's data class is RowAllowEventArgs. The following properties provide information specific to this event:
|Allow||Gets or sets a value specifying whether the current operation is allowed.|
|RowHandle||Gets the row’s handle (position). For the ColumnView.RowUpdated event, this property specifies the previous handle (position) of the currently processed row. Inherited from RowEventArgs.|
The BeforeLeaveRow event is raised each time a row is about to lose focus. The row can be identified by the RowEventArgs.RowHandle parameter. If you need to prevent row focus changes, set the RowAllowEventArgs.Allow parameter to false.
If you only need to respond to row focus changes, handle the ColumnView.FocusedRowChanged event.
The BeforeLeaveRow event does not allow you to prevent focus movement away from the New Item Row.