cjard
Well-known member
- Joined
- Apr 25, 2006
- Messages
- 7,081
- Programming Experience
- 10+
I've got a BindingSource Giving me grief now, and I cant find a simple solution.
Suppose i have two datasets called fruit and colour
fruit contains a table called apple
colour contains a table called red
I have a bindingsource1 such that:
-
now, how do i change this to the other dataset?
if i say:
if i say:
i hoped suspending and resuming the bindings would work, but no
aaaargh, this language is driving me bonkers
Suppose i have two datasets called fruit and colour
fruit contains a table called apple
colour contains a table called red
I have a bindingsource1 such that:
VB.NET:
BindingSource1.DataSource = fruit
BindingSource1.DataMember = "apple"
-
now, how do i change this to the other dataset?
if i say:
VB.NET:
BindingSource1.DataSource = colour 'crashes here saying "apple" is not a member of colour
BindingSource1.DataMember = "apple"
if i say:
VB.NET:
BindingSource1.DataMember = "colour" 'crashes says colour is not a member of fruit
BindingSource1.DataSource = fruit
i hoped suspending and resuming the bindings would work, but no
aaaargh, this language is driving me bonkers
Last edited by a moderator: