GridDataItemDeletingEventArgs.Cancel Property
Specifies whether to remove the processed data item from selection.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
public bool Cancel { get; set; }
#Property Value
Type | Description |
---|---|
Boolean |
|
#Remarks
The DataItemDeleting event fires when a user confirms the delete operation in the delete confirmation dialog. Handle this event to check user access permissions, delete a data item from the underlying data source, and reload Grid data.
After the DataItemDeleting
event handler is processed, the Grid removes the data item from the selection. If you do not delete this item from the data source, set the Cancel
property to true
to keep the item’s selection state.
Refer to the DataItemDeleting event description for information about event arguments and an example. For information on how to enable data editing, see the following topic: Editing and Validation in Blazor Grid.