Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loosing grid configuration
Message
From
22/07/1999 03:22:12
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00244242
Message ID:
00244575
Views:
16
Hi Jorge.

>> Any tips on preventing to loose the configuration or at least an easy way to save the hole grid (inlcuding colunms) configuration to restore after the cursor regeneration? <<

What I generally do is create an updateable cursor in the form.load() to bind my grid to add design time. The I have a custom grid.reset() methos that re-runs the sql into a temp cursor, zaps the grid's recordsource, and does an APPEND FROM DBF('Temp') into the grid's recordSource.

Zapping the updateable cursor will not rest your grid since it doesn't close its recordSource.

Marcia
Previous
Reply
Map
View

Click here to load this message in the networking platform