Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I change the color of grid cells?
Message
 
To
11/01/2000 17:29:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00316406
Message ID:
00316556
Views:
19
>>How do I change the color of cells in a column depending on criteria in a table?
>>
>>i.e. If a part has been ordered I want the cell in only the first column to be blue. If it has been received I want it to be green. If it is on back order then red, etc.
>
>Instead of SetAll, just use:
>
>THISFORM.Grid1.Column1.DynamicBackColor = "IIF(MyCondition,255,0)"
>
>to set a single column.

Eric,
I changed "IIF(MyCondition,255,0)" to "myfunction()" and it works wonderfully. I know it had to be that simple but I just could not find the right answer.

Thanks a million.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Previous
Reply
Map
View

Click here to load this message in the networking platform