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?
Just bind it to SelectedItem property: