Skip to main content

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.v24.2.dll

Declaration

[DefaultValue(EditFormBindingMode.Default)]
[XtraSerializableProperty]
public virtual EditFormBindingMode BindingMode { get; set; }

Property Value

Type Default Description
EditFormBindingMode Default

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

Available values:

Name Description
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 Type Path 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