title: WPF Binding a collection of collections to a DataGrid
body: <p>To simplify my problem, let's say that I have a property, that I am binding my DataGrid to:</p>
  
  <pre><code>public List&lt;LibrarySection&gt; Library { get; set; }
  </code></pre>
  
  <p>Then in each LibrarySection I have</p>
  
  <pre><code>class LibrarySection
  {
     public string SectionName{ get; set; }
     public List&lt;Book&gt; Books { get; set; }
  }
  </code></pre>
  
  <p>And book look like this:</p>
  
  <pre><code>class Book
  {
     public string Name { get; set; }
     public string Author { get; set; }
     public string BookID { get; set; }
  }
  </code></pre>
  
  <p>Now how can I bind to property Library, to achieve in a DataGrid a list of all the books:
  <a href="https://i.stack.imgur.com/kUtqS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kUtqS.png" alt="Book table"></a></p>