Board index » Visual Studio » getting subset of a Dataset?
|
Noslien
|
getting subset of a Dataset?
Visual Studio72
I have a dataset with Customers, Orders, and Items tables. It has datarelations set between Customers-Orders and Orders-Items It has foreignkeyconstraints with update/delete rules set to cascade for Orders & Items. The dataset is filled with Customers and their related Orders and their related Items. What is the most efficient way to create a second dataset that is a subset of the main dataset, but only has data for Customer_id = "1" and its' related Orders and Items? I have no control over the creation and population of the main dataset, therefore, I need to filter and copy data to another dataset. Since all relationships and constraints are already set, is it possible to set a filter where I can say Customer_id="1" and have all of the other tables automatically filter as well? thanks. - |
