Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Fore Color
Message
From
06/10/1997 15:28:52
 
 
To
04/10/1997 12:36:37
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00053216
Message ID:
00053441
Views:
77
>>>Just put in the 8th column's DynamicForeColor property:
>>>
>>>iif(yourtest,RGB(255,0,0),RGB(0,255,0))
>>>
>>>Of course, you must modify the parameters for the RGB functions in order to have your colors.
>>>
>>>If you wanna do it at run time:
>>>MyGrid.Column8.DynamicForeColor = "iif(yourtest,RGB(255,0,0),RGB(0,255,0))"
>>>
>>>Vlad
>>>
>>>>I've searched and can not find an answer so here goes:
>>>>
>>>>I have a grid with 8 columns, I need to change column 8's fore color based on the value of a variable(Upon initialization). No matter what I try I can't get column 8 to change color based on the variable (which is either true or false). I'm not looking for a setall value, this needs to turn red if the value of the variable for that column is true and black if false. I searched here and found a reference to MS help, I searched there and found nothing that would help...Anyone have any ideas...I'm open! Thanks...
>>>>
>>
>>Vlad,
>>
>>As a follow up, in my grid if I don't have checkbox's within a cell the above works fine, but if I have a checkbox within a column then neither of the two above work...ideas around this? Thanks again.
>
>I just tested it and it work fine with checkboxes. What doesn't work for you? Do you have an error message? The color isn't changed? It must work.
>
>Vlad

I created another grid to reproduce the problem and this one works fine. I have no idea what was in the other grid that stopped it from working. Thanks for your help!

Gary
Previous
Reply
Map
View

Click here to load this message in the networking platform