Implementing master-detail with 2 tables in a dataset (wpf)

Posted by Dani on Stack Overflow See other posts from Stack Overflow or by Dani
Published on 2010-06-18T09:16:22Z Indexed on 2010/06/18 10:53 UTC
Read the original article Hit count: 187

Filed under:
|

I've created a dataset that contains 2 tables: Users (userID, UserName, other user details) Emails (Id, UserId, UserEmail)

I populate the dataset using 2 DataAdapters (one for each table)

I have a listbox, a few textboxes and a grid. listbox gets all the users, the few textboxs displays the user details when picked in the list box (this is easy b/c they are both bound to the same table).

the grid should display the selected user's email addresses.

How do I do it using binding ? is it possible or should I catch the selection change event and filter the grid "manually" (currently the grid displays all the emails in the tables).

© Stack Overflow or respective owner

Related posts about wpf

Related posts about master-detail