title: Getting the row number of the dataset by using datagridview's currentrow property
body: <p>please help me with this problem. I have a datagridview that is bounded to a dataset and when i select an item to the datagridview to delete, I get the correct item. But when i sorted the datagridview to some field, it return a different item. Here is my code:</p>
  
  <pre><code>DSet.Tables("sec_company_address").Rows(sec_company_address.CurrentRow.Index).Delete()
  </code></pre>
  
  <p>Edit: i try this line but it brings up an error.</p>
  
  <pre><code>Dim xID As String = sec_role_module.CurrentRow.Cells("nID").Value.ToString
  sDataSet.Tables(sec_role_module.Name).Rows.Find(xID).Delete()
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/skjzZ.png" alt="enter image description here"></p>