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.1.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
Declaration
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.