I have a datatable (sqltable) and a datagrid (dgData)
if the user click the datagrid header the grid changes sort order
but when i try to get
Dim Row As DataRow
Row = sqlTable.Rows(dgData.CurrentCell.RowIndex)
or
Dim Row As DataRow = sqlTable.Rows(e.RowIndex)
the row returned is not the row selected in the datagrid
any ideas how to do this?
Thanks