Back to Devexpress

EditFormUserControl.GetBoundFieldName(Control) Method

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-editformusercontrol-dot-getboundfieldname-x28-system-dot-windows-dot-forms-dot-control-x29.md

latest3.5 KB
Original Source

EditFormUserControl.GetBoundFieldName(Control) Method

Returns the field name in the underlying data source to which the editor is bound. The GetBoundFieldName method is a part of the ProvidePropertyAttribute implementation.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue("")]
public string GetBoundFieldName(
    Control c
)
vb
<DefaultValue("")>
Public Function GetBoundFieldName(
    c As Control
) As String

Parameters

NameTypeDescription
cControl

The editor within an EditFormUserControl.

|

Returns

TypeDefaultDescription
StringString.Empty

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

The GetBoundFieldName method is a part of the ProvidePropertyAttribute implementation. This method returns the value of the BoundFieldName extender property for a specified editor. For more information, see the Modify and Validate Cell Values topic.

See Also

SetBoundFieldName(Control, String)

GetBoundPropertyName(Control)

SetBoundPropertyName(Control, String)

Edit Data. Create Cell Editors. Validate User Input

EditFormUserControl Class

EditFormUserControl Members

DevExpress.XtraGrid.Views.Grid Namespace