I have models structure like this:
public class Book
{
public List<Author> Authors { get; set; }
public Book()
{
Authors = new List<Authors>();
}
}
public class Author
{
public string Name { get; set; }
}
I want somehow show the list of Books in 2 datagrids in WPF - One datagrid with books themself, when i select a row there - in second datagrids appears a list of Authors of the selected book.
How can I implement this? Probably I should use ObservableCollection, but how bind List to ObservableCollection?