.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

ModificationsController.ModificationsHandlingMode Property

Specifies the application behavior when a user modifies data and then changes the current object or closes the View.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

[DefaultValue(ModificationsHandlingMode.Confirmation)]
public ModificationsHandlingMode ModificationsHandlingMode { get; set; }
<DefaultValue(ModificationsHandlingMode.Confirmation)>
Public Property ModificationsHandlingMode As ModificationsHandlingMode
[DefaultValue(ModificationsHandlingMode.Confirmation)]
public ModificationsHandlingMode ModificationsHandlingMode { get; set; }
<DefaultValue(ModificationsHandlingMode.Confirmation)>
Public Property ModificationsHandlingMode As ModificationsHandlingMode
[DefaultValue(ModificationsHandlingMode.Confirmation)]
public ModificationsHandlingMode ModificationsHandlingMode { get; set; }
<DefaultValue(ModificationsHandlingMode.Confirmation)>
Public Property ModificationsHandlingMode As ModificationsHandlingMode

Property Value

Type Default Description
ModificationsHandlingMode

Confirmation

A ModificationsHandlingMode enumeration value that specifies the application behavior when a user modifies data and then changes the current object or closes the View.

Property Value

Type Default Description
ModificationsHandlingMode

Confirmation

A ModificationsHandlingMode enumeration value that specifies the application behavior when a user modifies data and then changes the current object or closes the View.

Property Value

Type Default Description
ModificationsHandlingMode

Confirmation

A ModificationsHandlingMode enumeration value that specifies the application behavior when a user modifies data and then changes the current object or closes the View.

Remarks

To specify the ModificationsHandlingMode in your code, inherit the WinModificationsController and/or WebModificationsController and override the OnActivated method.

using DevExpress.ExpressApp.SystemModule;
using DevExpress.ExpressApp.Win.SystemModule;
// ...
public class MyWinModificationsController : WinModificationsController {
    protected override void OnActivated() {
        base.OnActivated();
        if (View is ListView)
            this.ModificationsHandlingMode = ModificationsHandlingMode.AutoCommit;
    }
}

Note that a custom value should be assigned after the base class' OnActivated method is called, as the default value is calculated by this method. Avoid changing the ModificationsHandlingMode by accessing the ModificationsController from a custom controller via the Frame.GetController<ControllerType> method. Your custom controller may be activated before the ModificationsController activation, and your customization will be ignored.

See Also