title: How can I make an editable DataGrid in WPF?
body: <p>Basically I have the following in my MainWindow:</p>
  
  <pre><code>public ObservableCollection&lt;KeyValuePair&lt;string, int&gt;&gt; Environment { get; set; }
  </code></pre>
  
  <p>and I want to bind it to a datagrid in such a way that I can edit the data grid and have <code>Environment</code> be updated. Specifically, I want to be able to add new rows, delete rows, and edit individual cells. How can I do this?</p>