Solved

How to automatically scrolldown to the bottom of a grid?

Posted on 2001-06-18
3
143 Views
Last Modified: 2010-05-02
On a form I have drag and dropped a flexgrid, and with that grid, lots of records have been entered, so many records, in fact, that a vertical scrollbar appeared.
My question is "how do I make it so that when the form is loaded, it is by default, scrolldown to the last entry of the record? "
thanks.
0
Comment
Question by:tomboman
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
JonFish85 earned 50 total points
ID: 6204868
here is what I used:

  FlexGrid.SetFocus
  SendKeys "^{END}", True

hope that helps!
0
 
LVL 6

Expert Comment

by:JonFish85
ID: 6204951
could I ask why its graded as a B? just wondering...
0
 

Author Comment

by:tomboman
ID: 6204993
well, because I had to modify your code a little bit. as follow:

FlexGrid.SetFocus
SendKeys "^{PGDN}", True

In order to scrolldown to the BOTTOM of the grid.

I remember when my teacher told me, if I didn't answer the question, doesn't matter how good the answer is, you won't get the full mark. (or did I not made myself clear? in that case, it would have been my fault) anyway, I really appreciate you for answering my question. If it means a lot to you, I wish I could regrade the answer, somehow.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question