The requested page is not available for the requested platform. You are viewing the content for Default platform.

ModificationsController.CancelAction Property

Provides access to the ModificationsController's Cancel Action.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v19.1.dll


public SimpleAction CancelAction { get; }
Public ReadOnly Property CancelAction As SimpleAction

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 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 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