Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loosing grid configuration
Message
From
21/07/1999 13:23:26
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00244242
Message ID:
00244245
Views:
18
I understand that it will work better if you make mygrid.recordsource = '' and then do your changes, and then make mygrid.recordsource = 'mycursor'

>I have a grid that the RecordSource is a cursor:
>mygrid.recordsource='myCursor'
>
>if I regenerate the cursor to get the latest data from myTable with:
>select * from myTable into cursor myCursor
>
>I have to do this in order to get the new info displayed:
>mygrid.recordsource='myCursor'
>mygrid.refresh()
>
>After all this I get the new data displayed but I loose any grid or column configuration that the grid had previously.
>
>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?
--Todd Sherman
-Wake Up! Smell the Coffee!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform