Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vertical tool bar going past end of file in grid

Status
Not open for further replies.

hbotnick

Programmer
Sep 26, 2000
9
US
I have a grid based on a cursor table and there are no
empty records.
When I scroll the vertical toot bar down, It goes past the
last record, causing it go up until it reaches the top line
in grid and stops there. This causes some problems, such as
when I click on a record, it jumps to another record as it
is confused where it is. How can I ensure that the bottom
record will stay at bottom of grid even when I try to scroll
down past it ?

Thank You
HBOTNICK
 
Hi!

You cannot do that by a simple way. You can, of cource, use DoScroll method and handle Scrolled event to catch the moment when the grid scrolled to the end. However, this is just an idea and I do not know if it will work.

Jumping occurs because when grid is focused, it refresh self and scroll self automatically to show the current record in the record source.
Vlad Grynchyshyn
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top