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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagrid scrolling

Status
Not open for further replies.

Erics44

Programmer
Oct 7, 2004
133
GB
Hi
The user selects an Order number on Page1.aspx and then opens Page2.aspx where a Datagrid1 is displayed.

The Order number selected is represented in the first row of Datagrid1 and when Page2.aspx opens I would like it to automatically scroll through Datagrid1 until it finds the row represented by the order number selected.

Is this posible?

Thanks for any help, very much appreciated
 
I'm a little confused. Why not just display a grid that contains only rows that correspond to the Order Number selected in the previous page?

Jim
 
The user might need to view information from records with other order numbers without returning to the previous page
 
Well you can find the first row with that order ID and select it. However, this will not scroll the page to that row, even if you place the grid in a scrollable DIV. I believe some javascript might be needed. Hopefully someone else can chime in and help you more.
 
Do you know how I prevent the page from returning to the top when I select a row in my datagrid?
 
There have been multiple posts on here regarding that issue. Some have suggested Smart Navigation(not recommended), javascript and I belive CSS.

Try doing some searcher here.. I know there is lots of info on it.

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top