Back to Devexpress

ColumnView.RowDeleting Event

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-columnview-b6ece3c1.md

latest2.7 KB
Original Source

ColumnView.RowDeleting Event

Fires when a data row is about to be deleted.

Namespace : DevExpress.XtraGrid.Views.Base

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Action")]
public event RowDeletingEventHandler RowDeleting
vb
<DXCategory("Action")>
Public Event RowDeleting As RowDeletingEventHandler

Event Data

The RowDeleting event's data class is RowDeletingEventArgs. The following properties provide information specific to this event:

PropertyDescription
CancelGets or sets whether the current event (the row deletion) needs to be canceled.
ListSourceIndexGets the index of the current row in the data source. Inherited from RowDeletedEventArgs.
RowGets the currently processed row. Inherited from RowDeletedEventArgs.
RowHandleGets the row handle (id) that identifies the position of the current row in the control. Inherited from RowDeletedEventArgs.

Remarks

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.

See Also

RowDeleted

ColumnView Class

ColumnView Members

DevExpress.XtraGrid.Views.Base Namespace