Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling grid cell
Message
De
23/09/1999 20:26:18
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00267849
Message ID:
00268316
Vues:
21
Firstly, you can put it in Grid.Init event:
This.Mycolumn.DynamicCurrentControl="''+IIF(mycursor.fieldX=289,'Text1','Text2')"
Here, mycursor is your grid recordsource. You may also use Form's custom property here, and reset it e.g. in Grid.AfterRowColumnChange event.

>O.K., I've been playing around with this idea this morning but can't get anywhere. Somehow, I'm not using the DynamicCurrentControl propery correctly. For example, I've tried testing by putting this code in the AfterRowColChange event:
>
>THISFORM.Grid1.Column1.DynamicCurrentControl = IIF(RECNO('cTable')=2,"Text1","Text2")
>
>Ed, can you please give me some code sample on how to use this property properly? Thanks.
>
>>You may add two controls (textboxes) to each column, one is permanently enabled and another- disabled. Then you will use Column.DynamicCurrentControl to 'enable/disable' cells (property expression will be based on some record field value).
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform