Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid DynamicBackColor
Message
From
03/04/2001 16:06:29
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00491485
Message ID:
00491534
Views:
7
>Hi all,
>
>How do you set the back the back color of a column in a grid to a different color? In a a grid I have three columns, the first two columns controls' are should display in gray. I have tried manipulating the DynamicBackColor (bases on the examples in the KB and sample files) of the first two columns in the Init of the Grid as well as the in the When. What is the secret that I have missed. I know it has got to be simple!
>
>Thanks...

Hi Robert

Try the following in the refresh of the grid. It will reset anytime the form's refresh is called.

this.column1.DYNAMICBACKCOLOR = "IIF(some_codition, RGB(128,255,255),RGB(255,255,255))"

This always works for me.

HTH
MIKE
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform