I am trying to find, given a GridDataItem the index of the DataRow in the DataTable it was bound from.
I thought DataSetIndex looked like the answer but it seems to return the index of the row in the GridView and not the index in the original DataTable i.e. if the user has sorted the grid it references the wrong DataRow.
What am I doing wrong?
I thought DataSetIndex looked like the answer but it seems to return the index of the row in the GridView and not the index in the original DataTable i.e. if the user has sorted the grid it references the wrong DataRow.
What am I doing wrong?