Binding::BindingManagerBase Property


Gets the BindingManagerBase for this Binding.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

property BindingManagerBase^ BindingManagerBase {
	BindingManagerBase^ get();

Property Value

Type: System.Windows.Forms::BindingManagerBase^

The BindingManagerBase that manages this Binding.

Use the BindingManagerBase to iterate through a data-bound list by incrementing or decrementing the Position property. The BindingManagerBase class is abstract. The CurrencyManager class, which manages data-bound lists, inherits from the BindingManagerBase class.

The following code example gets the BindingManagerBase of every Binding on the form, and prints the Position property for each BindingManagerBase.

   void PrintPositions()
      for each ( Control^ c in this->Controls )
         for each ( Binding^ xBinding in c->DataBindings )
               "{0}\t Position: {1}",
               c, xBinding->BindingManagerBase->Position );

.NET Framework
Available since 1.1
Return to top