Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid losing recordsource and columns controlsource
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00298872
Message ID:
00300468
Views:
34
>Hi Pablo....
>
>The easiest solution to this problem is to use a "place-holder" cursor. Here is some sample code:
>
>Create Cursor cFoo ;
> (foofield c(10))
>This.Parent.grdfoo.Recordsource = "cfoo"
>set datasession to 1
>for x = 1 to 1000
>next x
>set datasession to 2
>This.Parent.grdfoo.Recordsource = "foo"
>
>
>What is going on here??? Before going to another datasession, I create a cursor with one field and no records. I assign the recordsource property of the grid to that new cursor. I then go to antother data source, do stuff, and then come back. When I come back, I re-join the grid to its original cursor......

Thanks John, I'll check this, and you don't loose the column's controlsource?? that's good!
Pablo Roca
Clavo Congelados, S.A. (La Coruna - Spain)
Sysop of PortalFox

Join MasFoxPro campaign
http://www.masfoxpro.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform