Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling a Control in a grid based on another control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00561183
Message ID:
00561189
Vues:
25
Hi Christopher,

Try to put two checkboxes in the column that may have the enabled/disabled checkboxes. Both will have the same controlsource. One of the checkboxes will have the Enabled property .T. and the other .F.
Change the "DynamicCurrentControl" property of the Column control in order to change between the two checkboxes based on the value of the ControlSource of the first column. Put some code like this:
Grid.ColumnX.DymanicCurrentControl = "IIF(MyTable.MyState, 'Check1', 'Check2'"
-----
Fabio Vazquez
http://www.fabiovazquez.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform