Skip to main content
.NET 6.0+

ModificationsController.CancelAction Property

Provides access to the ModificationsController‘s Cancel Action.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v23.2.dll

NuGet Package: DevExpress.ExpressApp


public SimpleAction CancelAction { get; }

Property Value

Type Description

A SimpleAction object representing the Cancel Action.


The Cancel Action is intended to rollback the changes made to the object selected in the current View (see BaseObjectSpace.Rollback).

This Action’s Execute event is handled by the Cancel protected method, overridden in the WinModificationsController and WebModificationsController, in different ways. When executing this Action in a Windows Forms application, a confirmation dialog can be invoked, if the ModificationsController.ModificationsHandlingMode property is set to ModificationsHandlingMode.Confirmation. In this dialog, you can prevent canceling changes or confirm them. If you do not want this dialog to be invoked, set the ModificationsHandlingMode property to ModificationsHandlingMode.AutoCommit or ModificationsHandlingMode.AutoRollback. In an ASP.NET Web Forms application, the confirmation message is not supported.

The Cancel Action is active when the current View is root (see View.IsRoot). Additionally, in ASP.NET Web Forms applications, it is active when the View is displayed in edit mode (see DetailView.ViewEditMode). In Windows Forms applications, its active state depends on the ModificationsController.ModificationsHandlingMode property value.

Information on the Cancel Action is available in the Application Model‘s ActionDesign node. To access it, use the Model Editor.

See Also