I'm assuming you have Master/Details set up two pages, where the GridView control is on the list.aspx page and the details control FormView or DetailsView on the edit.aspx page.
There are a couple of ways I can think of. First, have the GridView and the Details control on the same page. If you do this, when the cancel or update button is clicked, the gridview will retain it's current row position. The other way is to send the record
ID back in the query string to the list.aspx page. Then write some code to select the correct row in the GridView.
KashifB
Member
503 Points
403 Posts
Re: Clicking Cancel Question
Feb 18, 2009 01:55 PM|LINK
I'm assuming you have Master/Details set up two pages, where the GridView control is on the list.aspx page and the details control FormView or DetailsView on the edit.aspx page.
There are a couple of ways I can think of. First, have the GridView and the Details control on the same page. If you do this, when the cancel or update button is clicked, the gridview will retain it's current row position. The other way is to send the record ID back in the query string to the list.aspx page. Then write some code to select the correct row in the GridView.