I'm implementing a WPF MVVM application.
I have the following data structures:
public class ClientOrders
{
public DateTime OrderDate {get; set;]
public Description {get; set;]
public int Quantity {get; set;]
public decimal OrderAmount {get; set;}
}
public class Clients
{
public string name {get; set;}
public string address {get; set}
public string phone {get; set;}
public List<ClientOrders> {get; set;}
}
I would like to use a single WPF DataGrid using the MVVM pattern to display the data. The ClientOrders for each Client should be contained within a subgrid. That subgrid should be expandable/collapsible.
I would like to use the standard out-of-the-box WPF DataGrid (NO 3rd party controls). What is the best way to design/implement this? Can someone please point me to an example/tutorial?
Thanks