Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ModificationsController.ModificationsCheckingMode Property

Applicable to List Views. Specifies when the modifications made in an editable List View are committed.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

[DefaultValue(ModificationsCheckingMode.Always)]
public ModificationsCheckingMode ModificationsCheckingMode { get; set; }

#Property Value

Type Default Description
ModificationsCheckingMode Always

A ModificationsCheckingMode enumeration value that specifies when the modifications made in an editable List View are committed.

Available values:

Name Description
Always

Changes are committed when a user proceeds to the next record and when the List View is closed. Do not enable this mode when the new item row (see IModelListViewNewItemRow.NewItemRowPosition) is visible in the GridListEditor .

OnCloseOnly

Changes are committed when the List View is closed.

#Remarks

This property is set to Always in all XAF projects.

In WinForms applications, the value is overridden and set to OnCloseOnly for List Views. This means, data modifications are committed when a List View is closed. Set the ModificationsCheckingMode property to ModificationsCheckingMode.Always to commit modifications each time a record is modified. Changes will be committed and confirmation will be displayed when a user proceeds to the next record in the editable List View.

using DevExpress.ExpressApp.SystemModule;
using DevExpress.ExpressApp.Win.SystemModule;
// ...
public class MyWinModificationsController : WinModificationsController {
    protected override void OnActivated() {
        base.OnActivated();
        this.ModificationsCheckingMode = ModificationsCheckingMode.Always;
    }
}
See Also