>This code, of course, assumes that the columns have not been renamed from the original names of Column1, Column2, etc. and that they have not been reordered after adding them to the grid. A more generic solution would be someting (untested) like this:
>
>
>FOR EACH loColumn IN This.Columns
> IF loColumn.ColumnOrder > 1
> loColumn.DynamicBackColor = "IIF( 'BLOCK' $ EVAL( loColumn.ControlSource ), RGB( 255, 0, 0 ), RGB( 0, 0, 255 ) )"
> ENDIF
>ENDFOR
>
Hi Maria:
I just tried this code but got the following VFP message:
"Expression is invalid. Use a valid expression for DYNAMICBACKCOLOR property"
Got the same message for Wilfred's idea too.
- Ravi
- Ravi
True greatness consists in being great in little things.
- Charles Simmons