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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to automatically scroll to the bottom?

Status
Not open for further replies.

MikeBronner

Programmer
May 9, 2001
756
US
I have a control (datarepeater) and when my form loads, it naturally displays the first few sets of data. However, i would like it to scroll to the bottom when the form loads up, so that what the user sees is the last record.

Any ideas on how to do this?

Sorting the data to display in descending order would not be effective, since the new record i added with .AddNew will still be at the bottom.

An alternative would be to have the new record at the top. Any idea how to do that?

Thanks!
 
Is there any way to make it move one step farther?
When I use.MoveLast it only displays a fraction of the last record (the first line, my records have two lines).

Thanks though.
 
Michael

What do u mean by 2 lines in a record ? I am getting confused. Be specific.
How is yr form ? u display all the things in textboxes or
r u using any grid ?

apoorva

 
well, i'm using a custsom control, consisting of two lines of textboxes, in a datarepeater control to display my records for editing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top