GridView - Scroll on image button click

Discussion in 'ASP .Net' started by Iain, Aug 10, 2010.

  1. Iain

    Iain Guest

    I have a simple page with a image button and a Gridview.

    On the click of the image button I have the following :

    if ((GridView1.Rows.Count) >= (GridView1.SelectedIndex + 2))
    {
    GridView1.SelectedIndex = GridView1.SelectedIndex + 1;
    GetHistoryData();
    }

    This works as you'd expect and highlights the next row on the grid. Only
    problem is the gridview scroll bar doesn't automatically scroll, is
    there any way to automatically scroll the grid when the button is clicked.

    TIA
    Iain
    Iain, Aug 10, 2010
    #1
    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. Purvi T
    Replies:
    0
    Views:
    829
    Purvi T
    Oct 19, 2004
  2. nicholas
    Replies:
    0
    Views:
    438
    nicholas
    Dec 7, 2004
  3. Kevin
    Replies:
    1
    Views:
    9,516
    Roland
    Feb 5, 2005
  4. Amy
    Replies:
    0
    Views:
    974
  5. keithb
    Replies:
    1
    Views:
    11,532
    keithb
    Jun 6, 2006
Loading...

Share This Page