Adds a ListBinding to the collection.
[Visual Basic] Overridable Protected Sub AddCore( _ ByVal dataBinding As ListBinding _ ) [C#] protected virtual void AddCore( ListBinding dataBinding ); [C++] protected: virtual void AddCore( ListBinding* dataBinding ); [JScript] protected function AddCore( dataBinding : ListBinding );
Exception Type | Condition |
---|---|
ArgumentNullException | The dataBinding argument was a null reference (in Visual Basic Nothing). |
[Visual Basic]
Private Sub BindControl() Dim ds As DataSet ' Not shown: code to populate DataSet with tables. Text1.Bindings.Add("Text", ds.Tables("Products"), "ProductName") Label1.Bindings.Add("Text", ds.Tables("Suppliers"), "CompanyName") End Sub
BindingsCollection Class | BindingsCollection Members | System.WinForms Namespace