On my web page, I have a grid view control that displays data to the users and gives them the ability to either select a row (more information is displayed elsewhere on the page) or click edit, to edit the details of a row. What I am having trouble figuring out is how to change the selected row when the user clicks edit. As an example, the user clicks select on row 3 and the sub-data for row 3 is displayed. Next the user clicks 'Edit' on row 5 which lets him edit line 5 properly, but in the sub-data still just displays row 3 data and is still the selected row. Any ideas would be appreciated.

Chris