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.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

public void SetBoundPropertyName(
    Control c,
    string value
)

#Parameters

Name Type Description
c Control

The editor in an EditFormUserControl.

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.

See Also