Skip to main content

GridDataItemDeletingEventArgs.Cancel Property

Specifies to remove the processed data item from selection.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public bool Cancel { get; set; }

Property Value

Type Description
Boolean

true to remove the processed data item from selection; false to keep the item’s selection state.

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.

See Also