Quantcast
Channel: CSharp Forum Latest Questions
Viewing all articles
Browse latest Browse all 32060

How to get the dataRow where the cursor is located

$
0
0

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.             

 


 


 


Viewing all articles
Browse latest Browse all 32060

Trending Articles