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

DataGrid and details

Status
Not open for further replies.

overDeveloper

Programmer
Dec 11, 2006
58
US
I know there has to be an easy way to do this, I just do not have the experience to know... I have a data grid that lists a number of records and has a link for each "view details" I want the details to show up above the datagrid... the problem is that when I am paging through the results (say for example, I am on page 8) and I click a records "view details link... the grid goes back to page 1 (or 0) - that is because the view details link is simply a link back to the same page (i.e. page.asx?id=128) How can I click a link to view details and not lose the page I am on? Perhaps linking to the page is incorrect - what would be a better way....
 
You can set the GridView to show any page by setting it's PageIndex property.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I understand that - my issue is that when I click on a view details link - where the index is getting lost - I am searching for a way to maintain where the index is and then "reset" the grid back to that page....
 
Well, if you step though your code, you should be able to see where the index is changed. Then, you just have to set it to what you want it to be.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top