Solved

How to automatically scrolldown to the bottom of a grid?

Posted on 2001-06-18
3
148 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

688 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