Enables you to prevent a list item from being deleted.
NuGet Package: DevExpress.Web
public event ASPxDataDeletingEventHandler ItemDeleting
Public Event ItemDeleting As ASPxDataDeletingEventHandler
The ItemDeleting 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.|
A combo box editor’s list items can be deleted by using the server (ListEditItemCollection.Remove and StateManagedCollectionBase.Clear or client (ASPxClientComboBox.RemoveItem and ASPxClientComboBox.ClearItems) methods. Each time a list item is going to be deleted from the editor’s ASPxAutoCompleteBoxBase.Items collection, the ItemDeleting event occurs, allowing you to cancel item deletion. To cancel the delete operation, set the event parameter’s Cancel property to
After a list item has been deleted, the ASPxAutoCompleteBoxBase.ItemDeleted event is raised.