January 28th, 2013, 02:48 PM
Get the dataRow where the cursor is located in a sorted table
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.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!