Visual Web Developer Panel Control does not maintain scroll position after postback

Hi,

I have created a web form in Visual Web Developer 2005 Express Edition that is fairly lengthy. At the end of it there is a Panel control with a GridView control inside. The Panel control is configured with the scrollbars property set to Auto. The GridView table is large and the Panel control displays the vertical scrollbar.

I can use the MaintainScrollPositiononPostback="true" directive in the <@ Page... tag and this works well for keeping the scroll position of the page itself but not the Panel containing the Gridview.

Is there a way to maintain the scroll position of the Panel on postback

Regards,

Devendra



Answer this question

Visual Web Developer Panel Control does not maintain scroll position after postback

  • jon2givbahelp

    Hi, I have the same problem that you describe in this message. Did you resolve it Please, if so, let me know the answer. Thanks, Alfredo.


  • Csharp.NetUser

    Hi!

    The short answer to your question is that I don't believe that there is a way to do this, but check on the ASP.NET forums site, as someone may know for sure, or know how to extend the control to do this.

    The best place for asking ASP.NET questions is on the ASP.NET community site, and in the forums there. Check out http://www.asp.net/welcome.aspx tabindex=1&tabid=39.

    HTH,

    PEte



  • Clayton_drd

    If anyone has found a way to maintain the scroll position of a GridView please post, it would be very useful to know.

    Thanx


  • Visual Web Developer Panel Control does not maintain scroll position after postback