Skip to main content
.NET Framework 4.5.2+

ModificationsController.SaveAndCloseAction Property

Provides access to the ModificationsController‘s SaveAndClose Action.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v22.1.dll


public SimpleAction SaveAndCloseAction { get; }

Property Value

Type Description

A SimpleAction object, representing the Save and Close Action.


The SaveAndClose Action is intended to commit the changes made to the object selected in the current View, and close the View.

This Action’s Execute event is handled by the SaveAndClose protected method, overridden in the WinModificationsController and WebModificationsController in different ways. For instance, in an ASP.NET Web Forms application, the current View is not really closed, but displayed in view mode, by default.

The SaveAndClose 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.

The SaveAndClose Action is disabled when the current user does not have permission to change the current object.

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

See Also