Back to Devexpress

ASPxGridView.RowDeleted Event

aspnet-devexpress-dot-web-dot-aspxgridview-c31cba8a.md

latest3.1 KB
Original Source

ASPxGridView.RowDeleted Event

Occurs after a row has been deleted.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event ASPxDataDeletedEventHandler RowDeleted
vb
Public Event RowDeleted As ASPxDataDeletedEventHandler

Event Data

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

PropertyDescription
AffectedRecordsGets the number of records affected by the update operation. Inherited from ASPxDataBaseUpdatedEventArgs.
ExceptionGets the exception (if any) that was raised during the update operation. Inherited from ASPxDataBaseUpdatedEventArgs.
ExceptionHandledGets or sets whether an exception raised during the update operation was handled in the event handler. Inherited from ASPxDataBaseUpdatedEventArgs.
KeysGets a dictionary of field name/value pairs that specify the primary key of the item to delete.
ValuesGets a dictionary of the non-key field name/value pairs for the item to be deleted.

Remarks

End-users can delete rows by clicking the Delete command. To delete rows in code, use the ASPxGridView.DeleteRow method.

To cancel the delete operation, handle the ASPxGridView.RowDeleting event.

Note

The RowDeleted event fires even though an exception occurs during the data update operation. Use the ASPxDataBaseUpdatedEventArgs.Exception and ASPxDataBaseUpdatedEventArgs.ExceptionHandled argument properties to determine whether or not any exception occurs during the corresponding action, and handle it if you wish.

See Also

RowInserted

RowUpdated

Grid View

ASPxGridView Class

ASPxGridView Members

DevExpress.Web Namespace