I have a form with a DataGridView showing a list of customers, and some text boxes below showing details of the customer selected in the grid.
I have a Customer class and a CustomerList class of Customer objects, and a BindingSource with DataSource set to a CustomerList. The DataSource of the grid is this BindingSource.
Binding the textboxes is easy - I just use the same BindingSource and specify the property of Customer I want to display. The problem is that one of the properties of Customer is a list itself, and I want to display this list in e.g. a ListBox.
How can I accomplish showing this list in a ListBox using databinding, and have the list updated each time I click on a customer in the grid?