Back to Devexpress

GridOptionsEditForm.ActionOnModifiedRowChange Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionseditform.md

latest3.5 KB
Original Source

GridOptionsEditForm.ActionOnModifiedRowChange Property

Gets or sets an action performed when an end-user moves focus to another grid row while an opened Edit Form contains unsaved changes.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(EditFormModifiedAction.Default)]
[XtraSerializableProperty]
public virtual EditFormModifiedAction ActionOnModifiedRowChange { get; set; }
vb
<DefaultValue(EditFormModifiedAction.Default)>
<XtraSerializableProperty>
Public Overridable Property ActionOnModifiedRowChange As EditFormModifiedAction

Property Value

TypeDefaultDescription
EditFormModifiedActionDefault

An action performed when an end-user moves focus to another grid row while an opened Edit Form contains unsaved changes.

|

Available values:

NameDescription
Default

Specifies the same behavior as the EditFormModifiedAction.Save value.

| | Save |

A confirmation dialog asking the user to save or discard the changes, or cancel the action:

| | Cancel |

A confirmation dialog asking to discard the changes:

| | Nothing |

No confirmation is requested and it is not possible to move focus to another grid row.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ActionOnModifiedRowChange
GridView

.OptionsEditForm .ActionOnModifiedRowChange

|

Remarks

When an Edit Form contains unsaved changes and an end-user moves focus to another grid row, confirmation is required. You can specify this confirmation via the ActionOnModifiedRowChange property of the EditFormModifiedAction enumeration. It provides the following values:

  • Save and Default -

A confirmation dialog asking the user to save or discard the changes, or cancel the action:

  • Cancel -

A confirmation dialog asking to discard the changes:

  • Nothing -

No confirmation is requested and it is not possible to move focus to another grid row.

See Also

EditFormModifiedAction

GridOptionsEditForm Class

GridOptionsEditForm Members

DevExpress.XtraGrid.Views.Grid Namespace