Panel's Vertical Scrollbar
Hi everyone!!
I'm having 2 problems with the vertical scrollbar of a panel.. I would appreciate it a lot if you could help me.
I have a web page with an IFrame with an aspx page. This IFrame contains a Panel and the panel contains a datagrid. I recently managed to move along the datagrid's lines with the UP and DOWN arrows, changing background color of the register selected by navigation.
These are my 2 problems:
1. From the aspx page, when I move inside the datagrid with the arrows, it also moves the vertical scrollbar, which is ok except for one issue: scrollbar moves a LOT more than the navigation in the datagrid. I mean: if I press the key 2 times, the scrollbar will probably move to the end of the panel showing the bottom of the datagrid, and the selected item is just in line two, that means I can't see it because the scrollbar moved too much to the bottom.
2. From the web page containing the IFrame. I managed to navigate inside the grid with the UP and DOWN keys but I do that in javascript managing the datagrid object. So that doesn't make the vertical scrollbar move. Any ideas?
I guess the general question is: Is there a way to manage the movement of the scrollbar? deciding when and how much you want it to move?? Or at least any ideas that would help me?
Thanks a lot! I hope I explained my problems well enough for you to understand. I would really appreciate a fast response!