Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Bill von Valtier
  
 Rochester
 
 Bill von Valtier
 To: Eric den Doop
  Where is Eric den Doop?
 Houten
 Netherlands
 Eric den Doop
 Tags
Subject: RE: Thanks
Thread ID: 16107 Message ID: 16126 # Views: 2 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Wednesday, October 09, 2002 6:21:12 PM         
   


> > 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

Thanks, Eric.
That works fine. Actually that was the first method I tried for this some months ago when first starting OOP, and it didn't work, so I abandoned it, to try other methods. But in retrospect I likely had other faults with my first grids that prevented GO TOP from working !?

Bill vV

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