gridview position

Posted on 2008-11-11
Last Modified: 2013-12-17
I have a gridview which displays a long, long, long list of records. If i were to select a record from the middle of the gridview for edititng when i click on update or cancel the web page is scrolled to the top.

Is there a way in which I can tell my code that it needs to scroll down to the record which I was dealing with.
Question by:Mr_Shaw
    LVL 15

    Accepted Solution

    When you click the button to update the grid you could take the index of the currently active row before performing your update.  Then state after the update that the new active row is index Y.

    Author Comment

    i can't see anything in the intellisence which would allow me to set a new active row index
    LVL 15

    Expert Comment

    There isn't one really.  You're just changing the index from the first row, to whatever row you want.  

    Author Comment

    thanks for your help...

    the answer to my question is to use the page scroll position

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
    In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now