Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Make different color in grid
Message
De
17/01/2002 16:13:10
 
 
À
17/01/2002 08:10:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00606022
Message ID:
00606390
Vues:
23
>hi all...
>
>i have a little problem...
>if i have a grid with sales data..
>how can i make color different in the grid.
>for example, if over sales target using color green, below is using red...
>
>thanks
>
>Ivan Agusta

How about something like this in the interactivechange event

ogrid=thisform.grid1
do case
CASE THIS.Value = 4 && High Profit items
oGrd.SetAll("dynamicforecolor", ;
"IIF(Unit_price - Unit_cost > 5, RGB(255,255,255), RGB(0,0,0))", "Column")
oGrd.SetAll("dynamicbackcolor", ;
"IIF(Unit_price - Unit_cost > 5, RGB(255,0,0), RGB(255,255,255))", "Column")

* other case statements
endcase

Greg
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform