I need to get the dataRow of the current cursor location. The following code works just fine:
dRow = aisc_dbDataSet.Tables["W"].Rows[wDataGridView.CurrentRow.Index];
The problem arises when the table is sorted (by clicking at any of the headers). In that case, the dataRow that you get is the corresponding to the unsorted table. Please advise.