>I know it is asked before, but can anyone tell me how i can change the color of a fields in a grid ?
>
>Ex.:
>
>column 1 column2 column3 column4 column ..
>name Y N N ..
>.... N N Y ..
>.... N N Y ..
>.... Y N N ..
>.... Y Y N ..
>
>..
>
>when in a column the value is 'Y' (true) the color should be green
>when in a column the value is 'N' (false) the color should be red
>
>How?
>Or can you point me where i can find how to do it ?
>
>Marc
for each oColumn in this.Columns
if type(oColumn.Controlsource)='L'
oColumn.DynamicBackcolor = ;
'iif('+oColumn.Controlsource+',rgb(0,255,0),rgb(255,0,0))'
endif
endfor
Cetin