Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Color Question
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00859231
Message ID:
00859234
Views:
27
This message has been marked as the solution to the initial question of the thread.
>When I load a grid or refresh it I want to be able to change the backcolor of an entire row to red based on column1.text1 containing a specific value for eg USA
>
>How do I do this?
>
>Thanks
>
>Colin

Typically it is done with Column.DynamicBackColor expression, i.e.
* set one or more columns DynamicBackColor expression to
"IIF(mygridrecordsource.country = 'USA', RGB(255,0,0), RGB(255,255,255))"
* You can do it for all columns useng Grid.SetAll() method.
You can just download and use my GridHighlighter class, it has the conditional highlighting option.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform