Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Jump to Datagrid Item on other page

Status
Not open for further replies.

saturnius

Technical User
May 7, 2002
22
GB
Hello,
I have a Start/News page in my Web application with daily new items. On click I want to go to a detail page which should have the selected item in edit modus. Is this possible? Many thanks in advance!
 
If you know beforehand what the ItemIndex of that item will be, then you can just simply pass it via querystring, and then before binding the grid on the subsequent page, set it to what you sent:

theDataGrid.EditItemIndex = int.Parse(Request.QueryString["VarName"].ToString());
theDataGrid.DataBind();

-paul
penny1.gif
penny1.gif

The answer to getting answered -- faq855-2992
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top