title: How to add a button to a DataGrid while at the same time autogenerating its values? (C#, WPF)
body: <p>So I have a method that accepts a DataTable and puts into the DataGrid like so:</p>
  
  <pre><code>myDataGrid.DataContext = myDataTable;
  myDataGrid.AutoGenerateColumns = true;
  </code></pre>
  
  <p>I've tried adding in an ItemSource like so:</p>
  
  <pre><code>ObservableCollection&lt;Button&gt; buttons = new ObservableCollection&lt;Button&gt;();
  buttons.Add(new Button() { Content = "Open" });
  dg.ItemsSource = buttons;
  </code></pre>
  
  <p>But it just messes up the entire thing, replacing the columns with <code>Button</code> property names and the rows with <code>myButton</code> values. </p>
  
  <p><strong>tl;dr:</strong> Is there anyway to add a button to each row without messing up the data?</p>