Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When I change the RecordSource of grid..
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00307041
Message ID:
00307270
Vues:
18
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^
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform