Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying last record in grid
Message
From
13/08/1997 07:33:20
 
 
To
12/08/1997 14:47:16
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00044295
Message ID:
00044410
Views:
34
>>I have a form with a grid on it in which I want the user to be in the last record in the grid when the form is shown. In the init of the form I am issuing a GO BOTTOM to access the last record. However when the grid is displayed, the last record is shown as the first (top) row of the grid. If I issue a GO BOTTOM followed by SKIP -N I can fill in the rows of the grid, but then the current is not the last record.
>>
>>What I want is, on entry to the form, the current record to be the last record in the record set and for that record to be displayed as the last ( or near last ) row in the grid. Any ideas on how to do this?
>>
>>Thanks,
>>Bill
>
>The simplest way is to use Grid.Doscroll(0) looped as many times as number of records you want to show on top of the last on.

Hi Edward,
Never used Doscroll method before. That'll do it. Thanks.
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform