Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the grid current control at runtime.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00276709
Message ID:
00277153
Vues:
21
>I am trying to change the grid current control at runtime and it doesn't quite work.
>I am adding a new control called "Text2" and then removing the old control called "Text1" and setting the current control to the new control. Here is the code.
>
>Form.Grid1.Column1.AddObject("Text2", "SearchListTextBox")
>Form.Grid1.Column1.RemoveObject("Text1")
>Form.Grid1.Column1.CurrentControl = "Text2"
>
>This works and the data is displayed except when I click into a cell. The cell I click into goes blank. When I move focus to another cell then the data in the old cell reappears and the new cell goes blank.
>
>Has anyone seen this?
>
>Am I missing a property?
>
>Thanks in advance.

I saw this thing twice. Both times I had to rebuild the form from scratch. seemed to be a severe corruption.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform