N
Nick
Hello,
I've read through some articles and forums, but I'm still not sure what the
best solution is. I've got two tables, let's say TableA and TableB. It's a
one to many relationship from A to B. I want to do a join and display the
results in a datagridview. When I do the join I'll be limiting the results
based on a foreign key in TableB, so that it ends up being one to one. I hope
I'm making sense. I want to display the results of the join (both tables) in
the grid. How can I do this?
The keys are not the same, so I can't use entity splitting, right? I don't
want to allow the user to edit TableA, just TableB.
Here is some more info. The main table in my database is "Document" and
there is another table "GlobalVariables" (TableA). A document can write over
the global variable with a record in the "DocumentVariable" table (TableB).
So the DocumentVariable table has a GlobalVariableID and DocumentID. For a
given document I want to show the DocumentVariable records joined with the
GlobalVariable record so the user can see the global variable value and at
the same time show the value they are using. The global value in this screen
is not editable.
I sincerely appreciate any help.
Thanks,
Nick
I've read through some articles and forums, but I'm still not sure what the
best solution is. I've got two tables, let's say TableA and TableB. It's a
one to many relationship from A to B. I want to do a join and display the
results in a datagridview. When I do the join I'll be limiting the results
based on a foreign key in TableB, so that it ends up being one to one. I hope
I'm making sense. I want to display the results of the join (both tables) in
the grid. How can I do this?
The keys are not the same, so I can't use entity splitting, right? I don't
want to allow the user to edit TableA, just TableB.
Here is some more info. The main table in my database is "Document" and
there is another table "GlobalVariables" (TableA). A document can write over
the global variable with a record in the "DocumentVariable" table (TableB).
So the DocumentVariable table has a GlobalVariableID and DocumentID. For a
given document I want to show the DocumentVariable records joined with the
GlobalVariable record so the user can see the global variable value and at
the same time show the value they are using. The global value in this screen
is not editable.
I sincerely appreciate any help.
Thanks,
Nick