title: WPF DataGrid: Binding a Collection Property to Column
body: <p>I have a Class called Person:</p>
  
  <pre><code>public class Person
  {
    private string _Name;
    private ObservableCollection&lt;Smartphone&gt; _Smartphones;
  
    // Properties
  }
  
  public class Smartphone
  {
      private string _Manufacturer;
      private bool _IsWorking;
  
      // Properties
  }
  </code></pre>
  
  <p>And in my View I have a DataGrid. 
  My Question is:</p>
  
  <p>Is there a way to make my DataGrid look like this:</p>
  
  <p><img src="https://i.stack.imgur.com/ddSaj.png" alt="enter image description here"></p>
  
  <p>All Persons have the same Smartphones in their Collection, but with different values vor "IsWorking"...</p>
  
  <p><strong>EDIT:</strong>
  I've tried it with a DataGrid in a DataGrid like:</p>
  
  <pre><code>&lt;DataGrid ItemsSource="{Binding PersonCollection}"
                    AutoGenerateColumns="False"&gt;
              &lt;DataGrid.Columns&gt;
                  &lt;DataGridTextColumn Binding="{Binding Name}" Header="Name" /&gt;
                  &lt;DataGridTemplateColumn&gt;
                      &lt;DataGridTemplateColumn.CellTemplate&gt;
                          &lt;DataTemplate&gt;
                              &lt;DataGrid ItemsSource="{Binding Smartphones}"&gt;
                              &lt;/DataGrid&gt;
                          &lt;/DataTemplate&gt;
                      &lt;/DataGridTemplateColumn.CellTemplate&gt;
                  &lt;/DataGridTemplateColumn&gt;
              &lt;/DataGrid.Columns&gt;
          &lt;/DataGrid&gt;
  </code></pre>
  
  <p>But it is not the "solution" I would like to have... </p>
  
  <p><strong>EDIT 2</strong>: It would be nice, if there could be a Checkbox instead of "true/false" :) ...</p>