Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I change the color of grid cells?
Message
 
À
11/01/2000 17:29:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00316406
Message ID:
00316556
Vues:
18
>>How do I change the color of cells in a column depending on criteria in a table?
>>
>>i.e. If a part has been ordered I want the cell in only the first column to be blue. If it has been received I want it to be green. If it is on back order then red, etc.
>
>Instead of SetAll, just use:
>
>THISFORM.Grid1.Column1.DynamicBackColor = "IIF(MyCondition,255,0)"
>
>to set a single column.

Eric,
I changed "IIF(MyCondition,255,0)" to "myfunction()" and it works wonderfully. I know it had to be that simple but I just could not find the right answer.

Thanks a million.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform