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

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

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

#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