Fires when a data row is about to be deleted.
NuGet Package: DevExpress.Win.Grid
[DXCategory("Action")] public event RowDeletingEventHandler RowDeleting
<DXCategory("Action")> Public Event RowDeleting As RowDeletingEventHandler
The RowDeleting event's data class is RowDeletingEventArgs. The following properties provide information specific to this event:
|Cancel||Gets or sets whether the current event (the row deletion) needs to be canceled.|
|ListSourceIndex||Gets the index of the current row in the data source. Inherited from RowDeletedEventArgs.|
|Row||Gets the currently processed row. Inherited from RowDeletedEventArgs.|
|RowHandle||Gets the row handle (id) that identifies the position of the current row in the control. Inherited from RowDeletedEventArgs.|
To delete a row in the ColumnView, you can use the ColumnView.DeleteRow and ColumnView.DeleteSelectedRows methods. The RowDeleting event allows you to prevent row deletion. To do this, set the RowDeletingEventArgs.Cancel property to true.