edit/update returns grid to top

Discussion in 'ASP .Net Datagrid Control' started by Marc Miller, Apr 10, 2006.

  1. Marc Miller

    Marc Miller Guest

    I feel foolish asking this, its probably sooo obvious, but....

    I have a grid with 25 rows per page. If the user scrolls to
    the last record and clicks edit, the screen scrolls to the top
    of the grid. The user then has to scroll back to the record
    to edit it. How do I keep focus on the record that the user
    is editing?

    TIA,

    Marc Miller
     
    Marc Miller, Apr 10, 2006
    #1
    1. Advertising

  2. Marc Miller

    Brock Allen Guest

    You can use:

    <%@ Page MaintainScrollPositionOnPostback=true %>

    If you're using ASP.NET 2.0.

    -Brock
    http://staff.develop.com/ballen


    > I feel foolish asking this, its probably sooo obvious, but....
    >
    > I have a grid with 25 rows per page. If the user scrolls to the last
    > record and clicks edit, the screen scrolls to the top of the grid.
    > The user then has to scroll back to the record to edit it. How do I
    > keep focus on the record that the user is editing?
    >
    > TIA,
    >
    > Marc Miller
    >
     
    Brock Allen, Apr 10, 2006
    #2
    1. Advertising

  3. Marc Miller

    Marc Miller Guest

    Drat, we're not there yet!

    Thanks,
    Marc


    "Brock Allen" <> wrote in message
    news:...
    > You can use:
    >
    > <%@ Page MaintainScrollPositionOnPostback=true %>
    >
    > If you're using ASP.NET 2.0.
    >
    > -Brock
    > http://staff.develop.com/ballen
    >
    >
    >> I feel foolish asking this, its probably sooo obvious, but....
    >>
    >> I have a grid with 25 rows per page. If the user scrolls to the last
    >> record and clicks edit, the screen scrolls to the top of the grid.
    >> The user then has to scroll back to the record to edit it. How do I
    >> keep focus on the record that the user is editing?
    >>
    >> TIA,
    >>
    >> Marc Miller
    >>

    >
    >
     
    Marc Miller, Apr 10, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hartmut Schroth
    Replies:
    3
    Views:
    3,505
    Hartmut Schroth
    Dec 1, 2003
  2. Frederic HOUDE
    Replies:
    4
    Views:
    598
    Frederic HOUDE
    Aug 31, 2004
  3. Cuthbert
    Replies:
    8
    Views:
    436
    Ancient_Hacker
    Sep 13, 2006
  4. Iams

    How to edit records in a grid that's within a grid

    Iams, Mar 17, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    189
  5. Henke

    Update without using Edit and Update button

    Henke, May 30, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    155
    Brock Allen
    Jun 1, 2006
Loading...

Share This Page