Skip to main content
A newer version of this page is available. .

GridEditModelSavingEventArgs.Cancel Property

Specifies whether the edit model is saved to the underlying data source.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public bool Cancel { get; set; }

Property Value

Type Description
Boolean

true if the edit model is not saved to the data source; otherwise, false.

Remarks

The EditModelSaving event fires when a user submits the edit form or saves changes in the edit row, and validation is passed. Handle this event to check user input and access permissions and post changes to an underlying data source.

Once the event handler is executed, the edit form/row is closed. If you do not save changes to the data source and want to keep the edit form/row open, set the Cancel event argument to true.

Refer to the EditModelSaving event description for information about event arguments and an example. For information on how to enable data editing, see the following topic: Edit Data in Blazor Grid.

See Also