Skip to main content
A newer version of this page is available. .
Tab

ASPxVerticalGrid.RecordDeleted Event

Occurs after a record has been deleted.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public event ASPxDataDeletedEventHandler RecordDeleted

Event Data

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

Property Description
AffectedRecords Gets the number of records affected by the update operation. Inherited from ASPxDataBaseUpdatedEventArgs.
Exception Gets the exception (if any) that was raised during the update operation. Inherited from ASPxDataBaseUpdatedEventArgs.
ExceptionHandled Gets or sets whether an exception raised during the update operation was handled in the event handler. Inherited from ASPxDataBaseUpdatedEventArgs.
Keys Gets a dictionary of field name/value pairs that represent the primary key of the row to delete.
Values Gets a dictionary of the non-key field name/value pairs for the row to delete.

Remarks

End-users can delete records by clicking the Delete command.

To cancel the delete operation, handle the ASPxVerticalGrid.RecordDeleting event.

Note

The RecordDeleted 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