Skip to main content

ModificationsController.CancelAction Property

Provides access to the ModificationsController‘s Cancel Action.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v25.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public SimpleAction CancelAction { get; }

Property Value

Type Description
SimpleAction

A SimpleAction object representing the Cancel Action.

Remarks

The Cancel Action rolls back the changes made to the object selected in the current View (see BaseObjectSpace.Rollback).

When you execute this Action in a Windows Forms application, you can invoke a confirmation dialog, 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 to invoke this dialog, set the ModificationsHandlingMode property to ModificationsHandlingMode.AutoCommit or ModificationsHandlingMode.AutoRollback.

The Cancel Action is active when the current View is root (see View.IsRoot). 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