>>We know that:
>>thisform.grid1.column1.backcolor = 0
>>
>>changes the color property in column1 of the grid;
>>
>>but if we have 100 cols
>>
>>n = 100
>>m = 0
>>for i = 1 to n
>> m = m + 1
>> **THE PROBLEM:(these two didn't work)
>> *thisform.grid1.column(m).backcolor = 0
>> *thisform.grid1.column&m.backcolor = 0
>>endfor
>>
>>how can it be done?
>>
>>Thanks
>>
>>Gil
>
>Firstly, check the syntax: it should be Thisform.Grid1.Column
s.backcolor
>Also, it's much nicer to use Grid1.SetAll.
>Also, it's good idea to Grid1.Refresh.
I'm sorry, have to repeat the reply:
You can use either:
Thisform.Grid1.Column
s().backcolor=nColor
either:
Thisform.Grid1.Column&m
..backcolor=nColor
or the best:
Thisform.Setall("backcolor",nColor,"column")
Edward Pikman
Independent Consultant