R
Randy
I have a DataTable in a DataGrid.
If I click on the DataGrid, HitTestInfo in dataGrid1_MouseDown returns a Row
and Column number. I can use the Row number to say:
DataRow dr = dataTable.Rows[Row];
Of course, I get completely the wrong row of data if the user has sorted the
table by clicking any of the column headers.
Any thoughts on how to get the clicked-on dataTable row, regardless of
whether or not the column headers are being used to sort?
Thanks,
Randy
If I click on the DataGrid, HitTestInfo in dataGrid1_MouseDown returns a Row
and Column number. I can use the Row number to say:
DataRow dr = dataTable.Rows[Row];
Of course, I get completely the wrong row of data if the user has sorted the
table by clicking any of the column headers.
Any thoughts on how to get the clicked-on dataTable row, regardless of
whether or not the column headers are being used to sort?
Thanks,
Randy