http://support.microsoft.com/default...;EN-US;Q313482
First question:
[from article] The following code binds a TextBox control and a DataGrid control to the
same CurrencyManager and DataView: TextBox1.DataBindings.Add("Text", ds,
"Customers.CustomerID")
DataGrid1.DataSource = ds
DataGrid1.DataMember = "Customers"
Alternatively, you can use the following code to bind to different
CurrencyManager and DataView objects: TextBox1.DataBindings.Add("Text",
ds.Tables("Customers"), "CustomerID")
DataGrid1.DataSource = ds.Tables("Customers")
Each of the preceding code samples displays the same data. Edits and
scrolling are not synchronized between examples but are synchronized in them.
I can't see what would cause the first example to share a common currency
manager while the 2nd example would make use of two different
currencymanagers. I'm guessing it has something to do with the placement of
the table in the two examples that causes datasource overlapping in the first
but not in the second example, but I was hoping I could get some elaboration
on this.
My 2nd question:
You can use the Microsoft Visual Studio .NET integrated development
environment (IDE) to bind controls at design time to any class that supports
the IComponent interface. You can also bind at run time.
How does one bind at runtime? It seems like all the examples show design
time binding. Am I mistaken?
Thanks...
-Ben