BindingsCollection.AddCore Method (Binding)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

Adds a Binding to the collection.

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

protected virtual void AddCore(
	Binding dataBinding
)

Parameters

dataBinding
Type: System.Windows.Forms.Binding

The Binding to add to the collection.

Exception Condition
ArgumentNullException

The dataBinding argument was null.


Private Sub BindControl()
   Dim ds As DataSet
   ' Not shown: code to populate DataSet with tables.
   Text1.DataBindings.Add("Text", ds.Tables("Products"), "ProductName")
   Label1.DataBindings.Add("Text", ds.Tables("Suppliers"), "CompanyName")

End Sub

.NET Framework
Available since 1.1
Return to top
Show: