Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When I change the RecordSource of grid..
Message
 
 
To
21/12/1999 20:02:13
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00307041
Message ID:
00307270
Views:
17
Try this...

Prior to changing the Recordsource.... use code like this:

Thisform.Grid.Recordsource = ""

Then, change the new recordsource. I know attributes will stay in tact.. As for code, I have not tested to see if that persists, but it is a good bet it will..

Good luck

>Hi!
>
>When I changed the RecordSource of grid, codes in Click event were gone away. I have known it before. So, I made my class of grid and I put some codes in Click event. I created a form and add my grid class in it. The result was same as the prior result. codes were blanked.
>Is there a solution of keeping codes even if the recordsource is changed?
>
>Merry Christmas!! ^o^
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform