Using BindingManagerBase with a dataset with two relational datatables
Hi
I have made two Sqldataadapters. One has the table Film and the other
adapter has the table Category. I have generated a dataset wich contain
these tables and made a relationship between them. I have two textboxes. One
with a databinding to the table Film and the other to the table Category. I
use the code below in the forms Load event
Dim bmbDVD As BindingManagerBase
SqlDataAdapter2.Fill(DsDVD1, "Category")
SqlDataAdapter1.Fill(DsDVD1, "Film")
bmbDVD = Me.BindingContext(DsDVD1,"Film")
but when I use the object bmbDVD to change the position. The textbox with
the databinding to the table Category doesn't change. Maybe that's obvious
because I set the BindingContext to Film, but I have a relationship to the
table Category, so I thought it would work. Is there a way I can make this
work.??
Please help!!!
Fia
Date:Fri, 27 Jul 2007 13:32:19 GMT
Author:
|