Click here to Skip to main content
15,566,625 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a relational dataset and I wish to filter the parent and display the results of the parent filter, in one DataGrid and the Child results in another DataGrid.
Both DataGrids show the correct data prior to the filter being applied. The child grid then becomes disconnected and does not change as I switch from one row of the parent grid to the next.:confused:
Any assistance much appreciated.

I obviously did not define my problem tightly enough.
It is a Windows application I am working on, using Studio 2003.
I have an XML defined data set which I fill by extracting ADS data from files.
Posted
Updated 1-Mar-10 22:59pm
v2

1 solution

This depends on how you are creating the initial database connections and filling the data.

If you are manually loading the data, then you would need to look at the current Parent Row to get the row id (or whatever relationship field you are using) to pass to the reader for the child query.

If you are using BindingSources/Binding Navigators etc, this would be a lot simpler.

I suggest you look at some of these videos (Forms Over Data Series) here;
http://msdn.microsoft.com/en-gb/vbasic/bb466226.aspx#formsoverdata[^]

There are some great videos that show how it all hangs together.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900