Hi,
>grid.setall("DynamicBackColor","iif(condition,KbgcolNormal,Kbgcolevid","column")
you're having the compile time constants between quotation marks, so they are treated as string literals. Try this:
grid.setall("DynamicBackColor","iif(condition, " + KbgcolNormal + ", " + Kbgcolevid, "column")
HTH,
Armin
>I have to dynamically change the backcolor in a grid
>I usually do it by the method setall for example :
>grid.setall("DynamicBackColor","iif(condition,rgb(192,192,192),rgb(255,0,0)","column")
>
>Today i was trying to get color from an include file but i get an error.
>i wrote
>grid.setall("DynamicBackColor","iif(condition,KbgcolNormal,Kbgcolevid","column")
>
>Can I use constant or variable inside the setall method and if so
>where is the mistake ?
>
>Thanks
>Alessio