>Hello Ravi.
>
>
I just tried this code but got the following VFP message:
>
>"Expression is invalid. Use a valid expression for DYNAMICBACKCOLOR property">
>As an alternative to entering this into the DynamicBackColor for each column in the property sheet, this code in the grid's Init works:
>
>
>LOCAL lcBackColor
>FOR EACH loColumn IN This.Columns
> IF loColumn.ColumnOrder > 1
> IF TYPE( loColumn.ControlSource ) = 'C'
> lcBackColor = "IIF( 'BLOCK' $ " + loColumn.ControlSource + ", RGB( 255, 0, 0 ), RGB( 0, 0, 255 ) )"
> loColumn.DynamicBackColor = lcBackColor
> ENDIF
> ENDIF
>ENDFOR
>
Thanks again Marcia. Appreciate it.
- Ravi
- Ravi
True greatness consists in being great in little things.
- Charles Simmons