title: Binding DataGrid to ObservableCollection<Dictionary>
body: <p>I have a <code>ObservableCollection&lt;Dictionary&gt;</code> and want to bind it to a <code>DataGrid</code>.</p>
  
  <pre><code>ObservableDictionary&lt;String,Object&gt; NewRecord1 = new ObservableDictionary&lt;string,object&gt;();
  
  Dictionary&lt;String,Object&gt; Record1 = new Dictionary&lt;string,object&gt;();
  Record1.Add("FirstName", "FName1");
  Record1.Add("LastName", "LName1");
  Record1.Add("Age", "32");
  
  DictRecords.Add(Record1);
  
  Dictionary&lt;String, Object&gt; Record2 = new Dictionary&lt;string, object&gt;();
  NewRecord2.Add("FirstName", "FName2");
  NewRecord2.Add("LastName", "LName2");
  NewRecord2.Add("Age", "42");
  
  DictRecords.Add(Record2);
  </code></pre>
  
  <p>I wanted the keys to become the header of the <code>DataGrid</code> and the values of each <code>Dictionary</code> item to be the rows. Setting the <code>ItemsSource</code> does not work. </p>