>>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement