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.v20.1.dll

Declaration

public void SetBoundPropertyName(
    Control c,
    string value
)
Public Sub SetBoundPropertyName(
    c As Control,
    value As String
)

Parameters

Name Type Description
c Control

The editor in an EditFormUserControl.

value String

The name of the editor property to be bound

Remarks

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