Javier

Javier

  • NA
  • 7
  • 7.3k

How to get the dataRow where the cursor is located

Jan 26 2013 11:51 AM

I need to get the dataRow where the cursor is located. The following code works fine:


dRow = aisc_dbDataSet.Tables["W"].Rows[wDataGridView.CurrentRow.Index];

The problem arises when the dataTable is sorted. In that case what I get is the dataRow corresponding to the unsorted table. Please advise.