Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling some rows in a grid
Message
De
18/11/2003 12:51:37
 
 
À
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:
00851096
Vues:
19
>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

How I do this is use two checkbox objects in the column.
Having one's enabled property set to true and one to false.
Then in the DynamicCurrentControl of the column set IIF(somecondition(), 'chk_Enabled','chk_Disabled')
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform