Skip to main content

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

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

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

#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