Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: anand kulkarni
  Where is anand kulkarni?
 sholapur
 India
 anand kulkarni
 To: stuart andrew
  Where is stuart andrew?
 Bristol
 United Kingdom
 stuart andrew
 Tags
Subject: RE: What causes grid reconstruction?
Thread ID: 331374 Message ID: 331377 # Views: 39 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Grids
Date: Thursday, December 29, 2011 1:58:03 PM         
   


> >
> > Hi Stuart ,
> >
> > you when you 1st time genarate grid data that time your calling or selecting data for specific conditation in to the grid . when you refreshing the grid you are doing the same thing . But insteed of doing same thing on 2nd time you have to zap or clear 1st time data from cursor and 2nd time you have to append the refreshed data . Hope you understand .
> >
> > rgards
> > Anand S. Kulkarni
> >
> > When it rains ... all Birds occupy shelter , but Eagle is the only bird with its capacity to fly over the sky to avoid rains !!!
>
>
> Sorry didn't fully explain on the first load it does above, on any sort etc.
>
> it zaps the cursor blanking but not closing it so the grid shouldn't reconstruct then appends from the new temp cursor into the grid cursor then the recordsource is set back to the grid cursor, so at no point is the recordsource cursor ever closed.
Stuart
past your code here . May be i will help you
*------------- edited
do not close 1st cursor . collect data in another cursor for 2nd time and add it to 1st cursor and after that issue " thisform.grid1.refresh "

rgards
Anand S. Kulkarni

When it rains ... all Birds occupy shelter , but Eagle is the only bird with its capacity to fly over the sky to avoid rains !!!

ENTIRE THREAD

What causes grid reconstruction? Posted by stuart andrew @ 12/29/2011 1:45:28 PM
RE: What causes grid reconstruction? Posted by anand kulkarni @ 12/29/2011 1:53:46 PM
RE: What causes grid reconstruction? Posted by stuart andrew @ 12/29/2011 1:56:45 PM
RE: What causes grid reconstruction? Posted by anand kulkarni @ 12/29/2011 1:58:03 PM
RE: What causes grid reconstruction? Posted by tushar @ 12/29/2011 2:58:22 PM
RE: What causes grid reconstruction? Posted by Pete Sass @ 12/29/2011 10:38:44 PM
RE: What causes grid reconstruction? Posted by Anders Altberg @ 12/30/2011 1:34:29 AM
RE: What causes grid reconstruction? Posted by Jun Tangunan @ 12/30/2011 2:34:31 AM