Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling some rows in a grid
Message
De
18/11/2003 13:00:47
 
 
À
18/11/2003 12:44:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00851094
Message ID:
00851101
Vues:
14
>Hi All:
>
>Can I disable some columns in some rows in a grid?
>
>Something like:
>
>
>FOR i = 1 TO thisform.NumberOfRecords
>	IF somecondition(i)
>		thisform.grid1.column1.chkBox[i].enabled = .f.
>	ENDIF
>NEXT
>
>
>Thanks,
>
>Yossi

You can use the column.DynamicCurrentControl property.
Add another checkbox to the column exactly like the current one, except set Enabled=.F.
then
this.Column1.DynamicCurrentControl="IIF(somecondition,'chkBox1','chkBoxDisabled')"
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform