Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid dynamic cell color
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00248110
Message ID:
00248135
Views:
15
>>>All,
>>>
>>>I would appreciate some suggestions on how to dynamically change backcolor in a grid cell.
>>>
>>>For example, the user enters, or changes the value of the quantity of the order item. Something like: green if < instock, yellow = instock, red > instock.
>>>
>>>I have tried the column DynamicBackColor, but I am not making it do what I want.
>>>
>>>Should I be looking at the valid on the textbox instead?
>>>
>>>TIA
>>>
>>>Al
>>
>>DynamicBackColor is how you do it. Look at the Solutions Samples for an example on how to do this.
>
>Thanks Craig,
>
>That is the way I have been doing it, in the Init(), but seem to be setting the whole column based on the first value and does not refresh. I have to close and open the form to get the new color. I tried puting the same code in the Refresh() as well, but that didn't fix it either.
>
>I will go back to Solutions Samples and start over. Thanks again.
>
>Al

There are examples in the Solution Samples that show how to do an indivual cell.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform