Click here to Skip to main content
15,887,837 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I need to retain a gridview's scroll position upon postback from a modalpopup. I tried to store the SelectedIndex in a hidden field and then read the field when the gridview rebinds, but it didn't work.

How can I store the Gridview's row position after returning from a modalpopup which allows for updating of that row?
Posted
Comments
Sandeep Mewara 18-Apr-11 0:27am    
Using Updatepanel?
Wonde Tadesse 3-May-11 21:14pm    
Are you using AJAX update panel ? If you use, this won't happen.

How are you initiating the modal dialog? There should be no post-back of the parent page when opening a modal dialog.

MaintainScrollPositionOnPostback[^]
 
Share this answer
 
Comments
raju melveetilpurayil 17-Apr-11 19:15pm    
my 5
I found several javascript solutions to this question.
 
Share this answer
 
db
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900