B
Brian Mitchell
Ok, I know this is an elementary question but I have a data grid that is
bound to a data table and I can't seem to find a way to match the selected
row in the grid with it's respective row in the underlying data table.
If the rows in the grid are in the same order as the rows in the table then
I can use the Datagrid.CurrentRowIndex to return the same row from the data
table. But if the user sorts the data in the grid then the row order in the
grid no longer match the row order in the data table.
My question is: How do I return a reference to the row in the underlying
data source from the data grid?
Thanks!!
bound to a data table and I can't seem to find a way to match the selected
row in the grid with it's respective row in the underlying data table.
If the rows in the grid are in the same order as the rows in the table then
I can use the Datagrid.CurrentRowIndex to return the same row from the data
table. But if the user sorts the data in the grid then the row order in the
grid no longer match the row order in the data table.
My question is: How do I return a reference to the row in the underlying
data source from the data grid?
Thanks!!