0
Answer

How to get the dataRow where the cursor is located

Javier

Javier

11y
948
1

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.