Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Row Back Color in a Grid
Message
 
 
To
23/01/2005 17:37:09
Mike Smith
Doncaster Office Services
Oakville, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows 2000
Miscellaneous
Thread ID:
00979862
Message ID:
00979863
Views:
10
>I would like to get the Back Color or a Row to change to reflect the value of a field in that Row.
>
>Suppose I have a field called ColorV that can have a value of 1 or 0.
>
>When the value is 1, I would like the backcolor of that row to have a one RGB Value and when the value is 0, I would like it to be different.
>
>Is it possible to do this with VFP 8.0? If there is a section of the Help File that covers this please let me know.
>
Hi Mike,

You can use DynamicBackColor property of a column.
Grid.DynamicBackColor =  "IIF(ColorV=1, RGB(255,0,0), RGB(255,255,255))"
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform