Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Programmatically Scroll GridView Control

Reply
Thread Tools

Programmatically Scroll GridView Control

 
 
Axeman
Guest
Posts: n/a
 
      04-25-2007
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(20).RowState = DataControlRowState.Selected

and

GridView.Rows(20).Focus()

and

GridView.SelectedIndex = 20

and

'Set focus to a hidden button control (column)
GridView.SelectedRow.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!

 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      04-25-2007
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(20).RowState = DataControlRowState.Selected
>
> and
>
> GridView.Rows(20).Focus()
>
> and
>
> GridView.SelectedIndex = 20
>
> and
>
> 'Set focus to a hidden button control (column)
> GridView.SelectedRow.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!
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable Scroll up and scroll down in CR-report Sathiamoorthy ASP .Net 1 11-28-2006 11:42 PM
Listbox disabled - cant scroll in IE - can scroll in Firefox =?Utf-8?B?Ui5OaWprYW1w?= ASP .Net 0 11-22-2006 03:46 PM
Using a div with scroll bars - can we get the scroll bars on the left instead of the right side? UJ ASP .Net 1 11-01-2006 09:32 PM
change the scroll speed of a scroll pane? Kevin Java 1 02-05-2005 09:42 AM
prevent mouse scroll to scroll in a dropdownlist nicholas ASP .Net 0 12-07-2004 11:26 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57