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.SetBoundFieldName(Control, String) Method

Sets the field name in the underlying data source to which the editor is bound. The SetBoundFieldName 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

public void SetBoundFieldName(
    Control c,
    string value
)

#Parameters

Name Type Description
c Control

The editor within an EditFormUserControl.

value String

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 a field name to this property at design time or via the SetBoundFieldName method in code.

The EditFormUserControl.GetBoundPropertyName method returns the editor property assigned to an editor’s BoundPropertyName extender property. The SetBoundFieldName and EditFormUserControl.GetBoundFieldName methods are part of the ProvidePropertyAttribute implementation. For more information, see the Modify and Validate Cell Values topic.

See Also