Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Barbara Peisch
  Where is Barbara Peisch?
 Oceanside
 California - United States
 Barbara Peisch
 To: Mustapha Bihmouten
  Where is Mustapha Bihmouten?
 Casablanca
 Morocco
 Mustapha Bihmouten
 Tags
Subject: RE: Data not populating in the grid from cursor
Thread ID: 104418 Message ID: 104459 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Grids
Date: Wednesday, August 16, 2006 7:54:11 PM         
   


> >
> > THISFORMSET.Form11.Grid1.RecordSource = "tc_hdr_vw"
> >
> > There are records in temporary cursor "tc_hdr_vw" no problem in cursor but records are not populating in the Grid from that cursor with given above settings of Grid

>
> Hello khurram
>
> Maybe you need to refresh the grid
> after the grid1.recordsource = "tc_hdr_vw"
> with grid1.refresh()
>
> Long live Foxite
> Mustapha Bihmouten


Calling a grid's refresh doesn't work. You need to set focus to the grid instead. Ken has shown this in his answer.

-BP
www.peisch.com

ENTIRE THREAD

Data not populating in the grid from cursor Posted by Khurram Tahir @ 8/16/2006 12:37:55 PM
RE: Data not populating in the grid from cursor Posted by Mustapha Bihmouten @ 8/16/2006 12:58:07 PM
RE: Data not populating in the grid from cursor Posted by Khurram Tahir @ 8/16/2006 1:17:12 PM
RE: Data not populating in the grid from cursor Posted by Barbara Peisch @ 8/16/2006 7:54:11 PM
RE: Data not populating in the grid from cursor Posted by Ken Murphy @ 8/16/2006 3:09:31 PM
RE: Data not populating in the grid from cursor Posted by Jorge Angulo @ 4/9/2007 8:39:14 PM
RE: Data not populating in the grid from cursor Posted by Jorge Angulo @ 4/9/2007 8:39:20 PM
RE: Data not populating in the grid from cursor Posted by Ken Murphy @ 4/9/2007 8:45:43 PM
RE: Data not populating in the grid from cursor Posted by Jorge Angulo @ 4/10/2007 12:12:00 AM