Skip to main content

EditFormUserControl.GetBoundFieldName(Control) Method

Returns the field name in the underlying data source to which the editor is bound. The GetBoundFieldName method is a part of the ProvidePropertyAttribute implementation.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.2.dll

Declaration

[DefaultValue("")]
public string GetBoundFieldName(
    Control c
)

Parameters

Name Type Description
c Control

The editor within an EditFormUserControl.

Returns

Type Default Description
String String.Empty

The field name in the underlying data source to which the editor is bound.

Remarks

The EditFormUserControl offers the BoundFieldName extender property to other controls as it supports the ProvidePropertyAttribute. The BoundFieldName property specifies the field name in the underlying data source to which the editor is bound. You can assign the field name to this property at design time or via the EditFormUserControl.SetBoundFieldName method in code.

The GetBoundFieldName method is a part of the ProvidePropertyAttribute implementation. This method returns the value of the BoundFieldName extender property for a specified editor. For more information, see the Modify and Validate Cell Values topic.

See Also