>dear all, > >I have a grid with 3 columns. The third column is check box. How can I change the BackColor and ForeColor of row that is selected by clicking the check box? > >Love, >Gloria
Gloria,
&& init of Gridif( !DoDefault() )
return .F.
endiflocal s
s = [iif(] + this.RecordSource + [.FieldNameOfCheckBox, rgb(255,255,128), rgb(255,255,255))]
=this.SetAll('DynamicBackColor', s, 'Column')