Solved

How to automatically scrolldown to the bottom of a grid?

Posted on 2001-06-18
3
147 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

740 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