Click here to Skip to main content
15,901,122 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Team

I have a webpage where gridview is placed and it has 5 columns and about 50 Rows (Each cell has dropdown) when ever I click edit button on 20th row ( so basically i need to scroll down using the scroll bar to reach the 20th row, the problem is the moment i click on edit (20th row) page refreshes and goes back to the first row so i need to scroll down again to make any changes how can this be avoided

1 solution

In your page_Load event add the below code,

Page.MaintainScrollPositionOnPostBack = true;
Share this answer
Shahul Hameed 12-Sep-13 0:58am    
still its not working :-(

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