Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Color Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00859231
Message ID:
00859234
Vues:
26
This message has been marked as the solution to the initial question of the thread.
>When I load a grid or refresh it I want to be able to change the backcolor of an entire row to red based on column1.text1 containing a specific value for eg USA
>
>How do I do this?
>
>Thanks
>
>Colin

Typically it is done with Column.DynamicBackColor expression, i.e.
* set one or more columns DynamicBackColor expression to
"IIF(mygridrecordsource.country = 'USA', RGB(255,0,0), RGB(255,255,255))"
* You can do it for all columns useng Grid.SetAll() method.
You can just download and use my GridHighlighter class, it has the conditional highlighting option.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform