General information
Category:
Forms & Form designer
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...
>
>Gary
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only