General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only