Enables you to prevent a node from being deleted.
public event ASPxDataDeletingEventHandler NodeDeleting
Public Event NodeDeleting As ASPxDataDeletingEventHandler
The NodeDeleting event handler receives an argument of the ASPxDataDeletingEventArgs type. The following properties provide information specific to this event.
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 NodeDeleting event occurs when an end-user has clicked the Delete command button, or the ASPxTreeList.DeleteNode method has been called. To cancel the delete operation, set the event parameter's Cancel property to true.
After a node has been deleted, the ASPxTreeList.NodeDeleted event is raised.
To learn more, see Adding and Deleting Nodes.