Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Enable and Disable a Checkbox in grid ?
Message
De
21/06/2014 01:54:24
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
21/06/2014 00:19:26
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01602112
Message ID:
01602163
Vues:
69
>Hi,
>
>the following code store in refresh method of the column ?
>
>.dynamiccurrentcontrol="iif(myfield=1,[checkboxenabled],[checkboxdisabled])"

No, it should be done before the grid is shown, so it should go into .init() - of the column or the grid. I prefer the latter, so it's easier to find when editing, and in runtime it runs after all the .init() code in columns and controls, so there's no guessing at what runs in which order.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform