EditFormUserControl.GetBoundPropertyName(Control) Method
Gets the editor’s property bound to the field in an underlying data source. The GetBoundPropertyName method is part of the ProvidePropertyAttribute implementation.
Namespace: DevExpress.XtraGrid.Views.Grid
Assembly: DevExpress.XtraGrid.v24.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
c | Control | The component within an EditFormUserControl. |
Returns
Type | Default | Description |
---|---|---|
String | "Text" | The editor’s property bound to the field in the underlying data source. |
Remarks
The EditFormUserControl offers the BoundPropertyName extender property to other controls as it supports the ProvidePropertyAttribute. The BoundPropertyName specifies the editor’s 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. You can assign a value to the BoundPropertyName property at design time or via the EditFormUserControl.SetBoundPropertyName method in code.
The GetBoundPropertyName method returns the editor property assigned to the BoundPropertyName extender property. The GetBoundPropertyName and EditFormUserControl.SetBoundPropertyName methods are part of the ProvidePropertyAttribute implementation. For more information, see the Modify and Validate Cell Values topic.