Skip to main content
Tab

ASPxListBox.ItemDeleted Event

Occurs after a list item has been deleted.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public event ASPxDataDeletedEventHandler ItemDeleted

Event Data

The ItemDeleted 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 specify the primary key of the item to delete.
Values Gets a dictionary of the non-key field name/value pairs for the item to be deleted.

Remarks

A list box editor’s list items can be deleted by using the server (ListEditItemCollection.Remove, StateManagedCollectionBase.Clear or client (ASPxClientListBox.RemoveItem, ASPxClientListBox.ClearItems) methods.

The ItemDeleted event serves as a notification that a list item has been deleted from the editor’s ASPxListEdit.Items collection.

To specify whether a list item can be deleted, and cancel item deletion, handle the ASPxListBox.ItemDeleting event.

See Also