Programmatically Scroll GridView Control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Axeman

    #1

    Programmatically Scroll GridView Control

    I have an AJAX enabled web form with several data-filled GridView
    controls. The users accessing this web app will navigate the site via
    touch-screen monitors (i.e.: no mouse). As a result, I need an easy
    way for them to scroll the GridViews when the data is not visible. I
    want them to click on a button, which will then accordingly scroll the
    grid up or down. I have tried all the various combinations of the
    suggestions that I could find:

    GridView.Rows(2 0).RowState = DataControlRowS tate.Selected

    and

    GridView.Rows(2 0).Focus()

    and

    GridView.Select edIndex = 20

    and

    'Set focus to a hidden button control (column)
    GridView.Select edRow.Cells(5). Focus()

    If I could set focus to a particular row, I think it should scroll to
    show that row. This would be fine, but nothing seems to work. Anyone
    have any suggestions on how I could programatically scroll a GridView
    control?

    Thanks!

  • bruce barker

    #2
    Re: Programmaticall y Scroll GridView Control

    for a serverside solution, use paging, not scrolling.

    -- bruce (sqlwork.com)


    Axeman wrote:
    I have an AJAX enabled web form with several data-filled GridView
    controls. The users accessing this web app will navigate the site via
    touch-screen monitors (i.e.: no mouse). As a result, I need an easy
    way for them to scroll the GridViews when the data is not visible. I
    want them to click on a button, which will then accordingly scroll the
    grid up or down. I have tried all the various combinations of the
    suggestions that I could find:
    >
    GridView.Rows(2 0).RowState = DataControlRowS tate.Selected
    >
    and
    >
    GridView.Rows(2 0).Focus()
    >
    and
    >
    GridView.Select edIndex = 20
    >
    and
    >
    'Set focus to a hidden button control (column)
    GridView.Select edRow.Cells(5). Focus()
    >
    If I could set focus to a particular row, I think it should scroll to
    show that row. This would be fine, but nothing seems to work. Anyone
    have any suggestions on how I could programatically scroll a GridView
    control?
    >
    Thanks!
    >

    Comment

    Working...