troubleshooting Question

How to filter records in a dataset having 2 tables with Parent and Child Relationship

Avatar of shieldguy
shieldguyFlag for United Kingdom of Great Britain and Northern Ireland asked on
C#
5 Comments1 Solution1257 ViewsLast Modified:
I have a dataset that contain 2 tables.

Table 1 = Child Table
Table 2 = Master Table

The dataset tables has got the Parent Child relationship using the following code:

ds.Relations.Add(ParentColumn, ChildColumn);

What I want to achieve here is the filtered records using a criteria. For example the records of only the employees (Master Table) which are currently working in the company and not the leavers. To do that I need to use one of the columns in the master table but the records from the child table will be used to display on the form.

I hope I am clear explaining the problem.

Could anybody help please?

ASKER CERTIFIED SOLUTION
x77

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros