0
Reply

How to get the dataRow where the cursor is located

Javier

Javier

Jan 26 2013 11:51 AM
938

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.