S
steve
Hello,
I've been struggling with the following problem for a while now and although
i made it work halfway i still dont think I understand the principles
correctly....
I want to populate a few controls from a dataset, in other words they will
be synchronized. ( you scroll on the name the address will change
accordingly, etc.)
Now, I want the user to be able to choose the info (Tables) that will
populate the controls, so i put two radio boxes.
( Customers OR Employees)
BUT for either table I need info from a *corresponding* table. They are
related. (CustomerInfo and EmployeeInfo).since there will be some controls
populated from these (child) Tables.
In other words: I want to populate according to user's choice with:
Customers - CustomerInfo OR Employees - EmployeeInfo.
I have :
* 1 * DataConnection
* 2 * DataAdapters
* 1 * DataSet
And depending on the user's choice I use .Fill for the corresponding
adapter. It works for one Table at a time, but not for the child table as
well.
How do I pass the relational info (JOIN) for the corresponding child tables?
Through the Adapters' SELECT statement OR later I use the DataSet's Relation
property?
What is the best (only?) way to have something like that?
Thanx in advance for any help/links.
_steve_
I've been struggling with the following problem for a while now and although
i made it work halfway i still dont think I understand the principles
correctly....
I want to populate a few controls from a dataset, in other words they will
be synchronized. ( you scroll on the name the address will change
accordingly, etc.)
Now, I want the user to be able to choose the info (Tables) that will
populate the controls, so i put two radio boxes.
( Customers OR Employees)
BUT for either table I need info from a *corresponding* table. They are
related. (CustomerInfo and EmployeeInfo).since there will be some controls
populated from these (child) Tables.
In other words: I want to populate according to user's choice with:
Customers - CustomerInfo OR Employees - EmployeeInfo.
I have :
* 1 * DataConnection
* 2 * DataAdapters
* 1 * DataSet
And depending on the user's choice I use .Fill for the corresponding
adapter. It works for one Table at a time, but not for the child table as
well.
How do I pass the relational info (JOIN) for the corresponding child tables?
Through the Adapters' SELECT statement OR later I use the DataSet's Relation
property?
What is the best (only?) way to have something like that?
Thanx in advance for any help/links.
_steve_