NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

BindingsCollection.AddCore

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
);

Parameters

dataBinding
[To be supplied.]

Exceptions

Exception Type Condition
ArgumentNullException The dataBinding argument was a null reference (in Visual Basic Nothing).

Example [Visual Basic]

[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

See Also

BindingsCollection Class | BindingsCollection Members | System.WinForms Namespace