>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.
"IIF(mygridrecordsource.country = 'USA', RGB(255,0,0), RGB(255,255,255))"
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