Team -
Could someone please tell me I haven't lost my mind? I have done relationships in the past but now they don't seem to work. Have I gone dumb?
Creating a winform, using VS2008, sqlexpress & vb.net. My dataset looks like this:
--------------------------------------------
Table 1 - BranchInformation
BranchID - int - identity - PK
Name
Address
YadaYada
Table 2 - Contact Information
ContactID - int - identity - PK
BranchID - int (related to BranchInformation.BranchID)
Phone
Fax
Favorite Hot dog topping.
---------------------------------------------
Fairly basic right?!? Here is the weirdness.
When using both with a detail view layout the child information (ContactID & BranchID) won't fill in like normal. Normal to me is the -1 for the identity field ContactID and the BranchID field should pull from the parent table. But they don't.
I have tried it now several times with no luck. What is stranger is if I use the detail view for Table 1 (Branch Information) and the gridview for Table 2, it works exactly as it should.
Can someone tell me what I am missing? It must be something simple. I have checked all the dataset configs and all of them are set to all inserts/update/delete and are also set to refresh data etc. What am I overlooking?
Thank you so much for your help or a point in the right direction!
Dewayne