Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6702687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:04:58+00:00 2026-05-26T07:04:58+00:00

I have the following Data Structures: List<Customer> currentCustomers {…} public class Customer { public

  • 0

I have the following Data Structures:

List<Customer> currentCustomers {...}

public class Customer 
{
    public string ID { get, set }
    public string Name { get, set } 
    [...]
    public List<Products> { get, set } 
}

I have a customers DataGrid bound to the currentCustomers List.
What I would like to be able to do is bind a second DataGrid to the selected item within customers to display all the Product information for that Customer.

i.e. The user clicks on a Customer within the Customers DataGrid, this then automatically updates a second DataGrid based on that Customers Products.

Is this even possible?

If so, is there a resource around that will tell/show me how this is done?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:04:59+00:00Added an answer on May 26, 2026 at 7:04 am

    Just bind it to SelectedItem property:

    <DataGrid x:Name="customersList" CanSelectMultipleItems="false" ... />
    
    <DataGrid x:Name="customerDetails" 
              ItemsSource = "{Binding ElementName = customersList, 
                                      Path = SelectedItem.Products}">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following data structure: public class Person { public string Name{get;set;} public
I have the following data structures class Car { int CarID; string CarModel; string
I have the following data-structure as a class named Task: private: string name; int
Suppose I have the following two data structures: std::vector<int> all_items; std::set<int> bad_items; The all_items
I have the following code: public static class ScraperMasterUriDetails { public static Dictionary<Guid, string>
I currently am using a data structures similar to the following: public class Individual
I have the following data set: structure(list(Geschaeft = c(0.0961028525512254, 0.0753516756309475, 0, 0.0722803347280335, 0, 0.000877706260971328),
I have the following data structure (a list of lists) [ ['4', '21', '1',
I have the following problem in my Data Structures and Problem Solving using Java
I have a table emp with following structure and data: name dept salary -----

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.