Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Colouring a row on a grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00062613
Message ID:
00062624
Views:
34
>>>How do I colour a specific row in grid? DynamicBackColor is used for columns not rows.
>>>
>>>I will like to colour each row based on the value of the data in a field on each row.
>>>
>>>Any ideas.
>>
>>Grid.SetAll("DynamicBackColor","IIF(field1=%value%, RGB(255,255,255), RGB(0,255,0))", "Column")
>
>I have having trouble with the use of that code I am using
>
>
>thisform.Grid1.SetAll("DynamicBackColor",IIF(thisform.grid1.ctime.combo1.value="0800", RGB(255,255,255), RGB(0,255,0)), "Column")
>
>I get the error "data type is invalid for this property".

Evan, check the bound column on your combo. Could you be using "0800" as display value while storing "8" or something similar?

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform