BindingMemberInfo::BindingField Property
.NET Framework (current version)
Gets the property name of the data-bound object.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System::String^The property name of the data-bound object. This can be an empty string ("").
The BindingField is the last item found in the navigation path returned by the BindingMember property. For example, if a new Binding is created that has a dataMember parameter of "Customers.custToOrders.OrderDate", BindingMember will return "OrderDate".
The following code example gets the BindingMemberInfo of each Binding on a form, and prints the BindingPath, BindingField, and BindingMember property values of BindingMemberInfo.
private: void PrintBindingMemberInfo() { Console::WriteLine( "\n BindingMemberInfo" ); for each ( Control^ thisControl in this->Controls ) { for each ( Binding^ thisBinding in thisControl->DataBindings ) { BindingMemberInfo bInfo = thisBinding->BindingMemberInfo; Console::WriteLine( "\t BindingPath: {0}", bInfo.BindingPath ); Console::WriteLine( "\t BindingField: {0}", bInfo.BindingField ); Console::WriteLine( "\t BindingMember: {0}", bInfo.BindingMember ); Console::WriteLine(); } } }
.NET Framework
Available since 1.1
Available since 1.1
Show: