Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing colors in individuals cells on a grid
Message
De
17/01/2000 20:18:42
 
 
À
17/01/2000 17:36:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00319234
Message ID:
00319255
Vues:
11
Hi Rudy,

>Does anyone know how to change the BackColor and ForeColor for an individual cell in a grid without having it affect the entire column? We are trying to give our users a visual clue that they have changed the values with a cell.

This is exactly what DynamicBackColor and DynamicForeColor are for. This code changes the color of of a cell based on the sign of the amount:

Grid.Column1.DynamicBackColor = "iif(Table.Balance < 0, rgb(255,0,0), rgb(0,255,0)")

All negatives are Red, and all non-negatives are green.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform