Back to Devexpress

XPBaseObject.AutoSaveOnEndEdit Field

xpo-devexpress-dot-xpo-dot-xpbaseobject-2deaf3cc.md

latest2.8 KB
Original Source

XPBaseObject.AutoSaveOnEndEdit Field

Specifies whether changes in a persistent object are automatically committed to a database after you have finished editing the object in a bound control.

To learn more, refer to How to: Control Automatic Saving of Objects when Editing in a Grid and How to: Prevent Changes in a Persistent Object from being Automatically Committed.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public static bool AutoSaveOnEndEdit
vb
Public Shared AutoSaveOnEndEdit As Boolean

Field Value

Type
Boolean

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AutoSaveOnEndEdit field.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

XPO_how-to-prevent-xpo-from-making-any-changes-to-a-legacy-database-e849/CS/Program.cs#L14

csharp
static void Main() {
    XPBaseObject.AutoSaveOnEndEdit = false;
    string conn = MSSqlConnectionProvider.GetConnectionString("(local)", "AdventureWorks");

XPO_how-to-prevent-xpo-from-making-any-changes-to-a-legacy-database-e849/VB/Program.vb#L17

vb
Shared Sub Main()
    XPBaseObject.AutoSaveOnEndEdit = False
    Dim conn As String = MSSqlConnectionProvider.GetConnectionString("(local)", "AdventureWorks")

See Also

XPBaseObject Class

XPBaseObject Members

DevExpress.Xpo Namespace