Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing colors in individuals cells on a grid
Message
From
17/01/2000 20:18:42
 
 
To
17/01/2000 17:36:54
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00319234
Message ID:
00319255
Views:
14
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform