Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to control individual grid fields colors
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Web
Divers
Thread ID:
01586023
Message ID:
01586027
Vues:
69
>I have a grid with 30 fields per row. I know how to set the color different on odd/even rows or on columns.
>I have a need to control the color on each field. Instead of the whole row being the same color,
>field one may be blue, field two may be green, etc. The same fields on the next row will be different colors
>than the previous row. Field one may be green, field two may be blue, and field 3 yellow.
>
>Is this possible? I was going to try the setting the dynamic forecolor and backcolor but it sounds like
>the whole row or column is colored.
>
>If this is possible, I would appreciate any input.
>
>Thanks,
>
>Brad

Nope, Dynamic* methods are for Column.
You don't have to use Grid.SetAll(), instead of this you could use:
Grid.Column1.DynamicBackColor = "IIF(SomeCondition,RGB(0,0,255), RGB(0,0,0))"
Grid.Column2.DynamicBackColor = "IIF(SomeCondition,RGB(0,255,255), RGB(0,0,0))"
...
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform