Back to Devexpress

GridOptionsEditForm.BindingMode Property

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

latest3.4 KB
Original Source

GridOptionsEditForm.BindingMode Property

Gets or sets the mode in which data from an Edit Form is passed back to the grid.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

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

Property Value

TypeDefaultDescription
EditFormBindingModeDefault

The mode in which data from an Edit Form is passed back to the grid.

|

Available values:

NameDescription
Default

Defines the same behavior as the EditFormBindingMode.Direct mode.

| | Direct |

An edited field value in an Edit Form is passed back to the grid at the moment an end-user moves focus to another field in an Edit Form.

| | Cached |

Edited field values in an Edit Form are collected in a proxy and passed back to the grid simultaneously when an end-user saves changes.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to BindingMode
GridView

.OptionsEditForm .BindingMode

|

Remarks

You can specify the mode in which data from an Edit Form is passed back to the grid. The EditFormBindingMode enumeration provides you with the following values:

  • Direct and Default - An edited field value in an Edit Form is passed back to the grid at the moment an end-user moves focus to another field in an Edit Form.
  • Cached - Edited field values in an Edit Form are collected in a proxy and passed back to the grid simultaneously when an end-user saves changes.

The ColumnView.SetColumnError method does not set errors for fields displayed in the edit form when the GridOptionsEditForm.BindingMode option is set to Cached.

See Also

EditFormBindingMode

GridOptionsEditForm Class

GridOptionsEditForm Members

DevExpress.XtraGrid.Views.Grid Namespace