BindingsCollection::AddCore Method (Binding^)
.NET Framework (current version)
This API supports the product infrastructure and is not intended to be used directly from your code.
Adds a Binding to the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| 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
Available since 1.1
Show: