title: How to Bind to a List inside an Observable Collection in WPF
body: <p>I have a class that has 2 public variables a string and a List of a Custom Class.</p>
  
  <p>I have setup Binding and it works great for the string but I can't get it to bind to the List.</p>
  
  <p>Code Behind</p>
  
  <pre><code>public class RegKey
  {
      public string Name { get; set; }
      public List&lt;CEKeys&gt; Key = new List&lt;CEKeys&gt;();
  }
  
  public class CEKeys
  {
      public string Path { get; set; }
      public string KeyName { get; set; }
      public string Value { get; set; }
      public string Type { get; set; }
  }
  </code></pre>
  
  <p>XAML</p>
  
  <pre><code>&lt;DataGrid x:Name="dgRegKeys" Margin="0,0,0,40" ItemsSource="{Binding}" AutoGenerateColumns="False"&gt;
      &lt;DataGrid.Columns&gt;
          &lt;DataGridTextColumn Foreground="Black" Width="60" Header="Name" Binding="{Binding Name, Mode=TwoWay}" IsReadOnly="True" /&gt;
          &lt;DataGridTextColumn Foreground="Black" Width="140" Header="Value"  Binding="{Binding Path=Key.Value, Mode=TwoWay}" IsReadOnly="False"/&gt;
          &lt;DataGridTextColumn Foreground="Black" Width="140" Header="Type"  Binding="{Binding Path=Key.Value, Mode=TwoWay}" IsReadOnly="True"/&gt;
      &lt;/DataGrid.Columns&gt;
  &lt;/DataGrid&gt;
  </code></pre>
  
  <p>How can I bind to the List of CEKeys while making the Value editable? Once the Value is confirmed I will be creating the keys that are listed.</p>
  
  <p>While typing this I came upon a second issue. Each regkey has a List of Keys. This is because the RegKey may need to set multiple keys for it to work correctly. How can I also display all the keys in the List?</p>