Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi,


Maintain gridview scroll position on pagepostback.


Thanks
Posted

1 solution

2 workarounds

Add "MaintainScrollPositionOnPostback" property to your ASP.Net header as in...
HTML
<![CDATA[<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" MaintainScrollPositionOnPostback="true" %>]]>



Or, you can always add an ID to your gridviewrow somewhere (it could be the tr)
HTML
<table><tbody><tr id="OverHere"> .... </tr></tbody></table>

And transfer user to the address on post as in
http://theAddress/thepage.htm#OverHere
 
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