R
Rick
VS 2005 designing a WinForm.
I have a typical CUSTOMER, ORDERS, ORDERDETAIL database. I want to show
these related items on a winform with either textboxes or datagridview
controls.
If I use the dataset designer to create a strongly-typed DS it will bring
into memory ALL the records in each table and then select a subset according
to the relations I have set when the user selects a CUSTOMER.
Of course, this is completely impractical when you have any quantity of rows
in any of the tables since they cannot all be brought into memory.
All the examples I see use the above approach for demonstration, but this
doesn't seem practical in a real world app.
So how do I do this right from the beginning? Do I create queries with a
param for the relation between the parent and child table and then respond
to a row change event?
I'm confused since I don't see any demo apps that use this senario which
surely must be quite common.
Thanks for any guidance,
Rick
I have a typical CUSTOMER, ORDERS, ORDERDETAIL database. I want to show
these related items on a winform with either textboxes or datagridview
controls.
If I use the dataset designer to create a strongly-typed DS it will bring
into memory ALL the records in each table and then select a subset according
to the relations I have set when the user selects a CUSTOMER.
Of course, this is completely impractical when you have any quantity of rows
in any of the tables since they cannot all be brought into memory.
All the examples I see use the above approach for demonstration, but this
doesn't seem practical in a real world app.
So how do I do this right from the beginning? Do I create queries with a
param for the relation between the parent and child table and then respond
to a row change event?
I'm confused since I don't see any demo apps that use this senario which
surely must be quite common.
Thanks for any guidance,
Rick