Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I dynamically change one cell in a grid?
Message
De
09/08/2001 18:16:39
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
09/08/2001 17:38:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00542012
Message ID:
00542053
Vues:
22
>Re: the Dynamically changing colors in a gris:
>
>Hey! I found another way and it works like a charm:
>
>In the AfterRowColChangeEvent of the grid I wrote this:
>
>IF THIS.VALUE="Free"
> THIS.column3.text1.BACKCOLOR=RGB(0,255,0)
> THIS.column3.text1.SELECTEDBACKCOLOR=RGB(0,255,0)
>
>ELSE
> THIS.column3.text1.BACKCOLOR=RGB(255,0,0)
> THIS.column3.text1.SELECTEDBACKCOLOR=RGB(255,0,0)
>ENDIF
>
>The SelectedBackColor line is so that it works even when you move from field to field with the arrow keys.

Cool. Does that change all the rows, too?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform