Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Sithu Kyaw
  Where is Sithu Kyaw?
 Yangon
 Myanmar
 Sithu Kyaw
 To: mk sharma
  Where is mk sharma?
 mumbai
 India
 mk sharma
 Tags
Subject: RE: Grid scroll programmatically
Thread ID: 365410 Message ID: 365415 # Views: 66 # Ratings: 0
Version: Visual FoxPro 9 Category: Grids
Date: Wednesday, December 26, 2012 8:06:56 AM         
   


> > I have a grid and I'm trying to scroll the grid vertically to the respective row currently selected.
> > For example, if the record pointer moves to the last record, the grid should be scrolled to the bottom.
> > If the record pointer moves to the middle record, the grid should be scrolled to the middle.
> >
> > I tried to issue GO BOTTOM, the grid is not scrolled to the bottom.
> > I think I need to do it explicitly with Grid.Scrolled().
> > But, I don't know how to do it.
> >
> > With Regards,
> > profile for Sithu on Stack Exchange, a network of free, community-driven Q&A sites
>
> Please try this.
>
>
> select YourTable
> Go bottom
> thisform.grid1.refresh
> thisform.grid1.setfocus
> 

>
>
> Warm Regards,
> mk.

Thank you, mk.
It does work.

With Regards,
profile for Sithu on Stack Exchange, a network of free, community-driven Q&A sites

ENTIRE THREAD

Grid scroll programmatically Posted by Sithu Kyaw @ 12/26/2012 7:15:50 AM
RE: Grid scroll programmatically Posted by mk sharma @ 12/26/2012 7:22:42 AM
RE: Grid scroll programmatically Posted by Sithu Kyaw @ 12/26/2012 8:06:56 AM
RE: Grid scroll programmatically Posted by David Mustakim @ 12/26/2012 8:52:51 AM
RE: Grid scroll programmatically Posted by Sithu Kyaw @ 12/28/2012 6:14:44 AM
RE: Grid scroll programmatically Posted by Rahul Moudgill @ 12/26/2012 1:17:21 PM
RE: Grid scroll programmatically Posted by Sithu Kyaw @ 12/28/2012 6:15:19 AM