title: Remove row from DataSet if bound table is sorted
body: <p>I have a <code>DataGridView</code> that is bound to a <code>DataSet</code> and I allow someone to remove a row from the table and I remove the row from the set. My code looks like this:</p>
  
  <pre><code>ds.Tables(0).Rows(dgCourseList.SelectedRows(0).Index).Delete()
  </code></pre>
  
  <p>My problem I found is if the grid gets sorted the index of the rows no longer corresponds to the indexes in the <code>DataSet</code>. As a result the wrong rows get removed from the set.</p>
  
  <p>Can I solve this problem with maybe having to sort the DataSet on some sort event of the <code>DataGridView</code>?</p>