I have a datagrid consisting of multiple boundcolumns and one
buttoncolumn. When I sort the grid, the data in the boundcolumns all
seems to sort correctly, however the datakey tied to the buttoncolumn
does not seem to sort with it. So in my case the buttoncolumn is
supposed to send the datakey for that row to another page for updating.
If I don't sort, it works fine. If I sort, it sends the datakey of
the row that was originally in that spot.
How do I get the datakey to sort along with the rest of the data?