title: How to prevent unbound data clearing during sort on DataGridView that has a DataTable as a DataSource
body: <p>I have a DataGridView that is populated with data by binding it with a DataTable. </p>
  
  <pre><code> InputDGV.DataSource = dt1;
  </code></pre>
  
  <p>Later, I am performing calculations and writing the results to the same DataGridView, successfully, using this statement:</p>
  
  <pre><code>InputDGV.Rows[Rowi].Cells[column_name].Value = num.ToString();
  </code></pre>
  
  <p>I am essentially displaying the inputs and outputs next to each other. I want the user to be able to sort the columns, but currently when a column is sorted the unbound data in the output cells are lost. Is there a way around this, or do I have to build a way to store the data in the DataSource dt1?</p>