Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Eric den Doop
  Where is Eric den Doop?
 Houten
 Netherlands
 Eric den Doop
 To: Bill von Valtier
  
 Rochester
 
 Bill von Valtier
 Tags
Subject: RE: Displaying top record of grid
Thread ID: 16107 Message ID: 16108 # Views: 2 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Wednesday, October 09, 2002 8:20:15 AM         
   


> Hello friends and mentors,
>
> In VFP6, how does one insure (programmatically) that when a grid is refreshed and displayed it will always show the top record in the grid at the top of the grid window? It seems capricious, often only the last record in the RecordSource is displayed, though a simple click on the scroll bar will do the job. But the user shouldn't need to do that. I have looked for a PEM to cover this and haven't found it.
>
> TIA
>
> Bill vV
> Rochester, Michigan

Simply use LOCATE or GO TOP before you issue grid.refresh. LOCATE seems to be faster than GO TOP.
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts

ENTIRE THREAD

Displaying top record of grid Posted by Bill von Valtier @ 10/9/2002 7:54:33 AM
RE: Displaying top record of grid Posted by Eric den Doop @ 10/9/2002 8:20:15 AM
RE: Thanks Posted by Bill von Valtier @ 10/9/2002 6:21:12 PM