CompatibilitySettings.AllowEditValueBindingInInplaceEditors Property

Gets or sets whether the GridControl's logic of getting/setting the editor's value is enabled.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Data.Desktop.v20.1.dll

Declaration

public static bool AllowEditValueBindingInInplaceEditors { get; set; }
Public Shared Property AllowEditValueBindingInInplaceEditors As Boolean

Property Value

Type Description
Boolean

true, if the GridControl's logic of getting/setting the editor's value is enabled; otherwise, false.

The default value is true.

Remarks

You can set an editor name to PART_Editor to make GridControl automatically adjust its appearance and synchronize the editor with the source field specified by the ColumnBase.FieldName or ColumnBase.Binding properties.

In v18.2, we have supported custom editors in GridControl's cells with navigation and validation support. Now you can use ColumnBase.CellTemplate, ColumnBase.CellDisplayTemplate, and ColumnBase.CellEditTemplate to specify any non-DevExpress and your own custom editors. We have changed the behavior when a cell editor with the PART_Editor name has specified EditValue to allow you to bind the cell editor manually.

Old behavior:

When you specify PART_Editor and EditValue simultaneously, GridControl ignores any binding specified on the editor, which may lead to an unpredictable state.

New behavior:

You can specify PART_Editor and EditValue simultaneously, and GridControl will still adjust the appearance and focus the editor but use your own binding.

In this case, GridControl's logic of getting/setting the editor's value is disabled.

Starting with v18.2.4, you can set the CompatibilitySettings.AllowEditValueBindingInInplaceEditors property to false to enable the old behavior.

See Also