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.v24.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
c | Control | The editor in an Edit |
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.