Hi!
Why you doing that in the When event (just noticed that)???
Do you want to do not show rows colored when grid has no focus?
Usually this code is in the Init of the grid.
Just check if that code line is running at all as you suggested (put DEBUGOUT or messagebox() there or something like that).
Also, when thid does not works, maybe, somewhere else this property (DynamicBackColor) is re-assigned?
>I tried this , it does not appear to help. Were you able to make it work ?
>
>
>>Hi!
>>
>>See correction in bold. You have to use alias, because record source alias for grid could be not current when grid is refreshed.
>>
>>>I am converting a grid from 6 to 7. The following line of code is in the when method :
>>>This.column1.dynamicBackColor = "iif(alltrim(
MyAlias.loc_highway_group) = 'X',rgb(255,0,0),rgb(255,255,255))"
>>>
>>>It works fine in 6 , turning the column the appropriate color, but no color at all in 7.
>>>
>>>Anyone any ideas...
>>>
>>>Ian
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.