Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New DS in a program - have problems - Urgent!
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00458554
Message ID:
00458633
Views:
20
Hi Nadya

Glad it worked, even if only partialy. ;(

I see your problem. Of course you can do this detach/attach of grid controls in this single case from "outside" but definately the better solution would be to define those two methods genericaly in the grids base class. But this needs of course to be discussed in a multi-programmer environment.

To do it on your own, define one array per grid, scan through the columns collection of the grid (this is rather an array) and store the controlSource values in your arrays. Set the ControlSources to "" afterwards, and restore them when done the reverse way. Another problem occurs, when the controls in the columns hold their own Controlsources, that you would have to check also.
Instead of using external arrays to save the controlSources values you can also use the objects tag or control properties, if they are still unused.

HTH
Markus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform