Skip to main content

EditFormUserControl.SetBoundPropertyName(Control, String) Method

Sets the name of the editor’s property bound to a field in an underlying data source. The SetBoundPropertyName method is a part of the ProvidePropertyAttribute implementation.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.1.dll

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


public void SetBoundPropertyName(
    Control c,
    string value


Name Type Description
c Control

The editor in an EditFormUserControl.

value String

The name of the editor property to be bound


You can bind an editor within an EditFormUserControl to a field in an underlying data source via the BoundFieldName extender property. The BoundPropertyName specifies the editor property to which a field value is assigned on initializing the Edit Form, and from which a value is fetched and posted back to the grid on saving data. If the BoundFieldName property value has been assigned, the BoundPropertyName property is automatically set to one of the following values:

  • EditValue - if the editor is a BaseEdit descendant.
  • Text - for all other types of controls.

For more information, see the Modify and Validate Cell Values topic.

See Also