Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting a grid
Message
From
04/12/2001 14:10:34
Ian Johnston
Computer Software Solutions
Woodland, California, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00589100
Message ID:
00589442
Views:
26
I don't know why I put it in the when method, I have moved it to the init. I checked the help for dynamicbackcolor and pasted in the code in their example and it worked, the difference appeared to be IIF was in caps. Once I put IIF in caps in my code it worked. Very strange....( a feature of 7 ?)

Thanks
Ian

>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform