Enables you to prevent a card from being deleted.
public event ASPxDataDeletingEventHandler CardDeleting
Public Event CardDeleting As ASPxDataDeletingEventHandler
The CardDeleting event's data class is ASPxDataDeletingEventArgs. The following properties provide information specific to this event:
|Cancel||Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.|
|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.|
The CardDeleting event occurs when an end-user has clicked the Delete command or the ASPxCardView.DeleteCard method has been called. To cancel the delete operation, set the event parameter's Cancel property to true.
After a card has been deleted, the ASPxCardView.CardDeleted event is raised.
The following example creates an unbound column that calculates the sum of other columns and changes its values dynamically when an end-user changes a grid value in Batch edit mode.