Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid goes empty
Message
From
17/02/1999 09:35:57
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00188017
Message ID:
00188363
Views:
14
>I have not used a grid with a cursor recordsource (Do cursors need to be requeried?), but i have used several tables as grid recordsource. The recordsource does not like to be "messed with". zapping, closing, changing the value, etc are all messing with the recordsource. To see if the zap is the problem:
>
>hold_recordsource = grid1.recordsource
>grid1.recordsource = space(0)
>zap cursor1
>grid1.recordsource = hold_recordsource
>
>If this keeps your grid from blanking then the zap is the problem. Before the Zap you will need to save the recordsource, and possibly the columncount and columns' controlsource. After the zap restore your saved values.

No need for that. I'm doing exactly the same thing - using one cursor, zapping it and filling it with records. Works just fine, and doesn't disturb the grid. It's just that in this case the grid doesn't show the visible record - as if the refresh() didn't do the necessary "go to the first available record and then show".

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform