>thisForm.pgfpagerefresh1.page4.Grdtmdataentry1.SetAll("DynamicBackColor", "thisform.zGridColor()", "Column" ) >>
>* cColor = "RGB(255,255,255)" && useless >DO CASE > CASE taskcomp && done... GREEN > RETURN RGB(215,255,215) > CASE EMPTY(taskend) AND taskbeg <= DATE() + 9 > RETURN IIF(taskbeg <= DATE() + 2,RGB(255,222,213),RGB(250,253,193)) > OTHERWISE > RETURN RGB(255,255,255) && white >ENDCASE >>
replace all nBackColor with this.zGridColor() thisForm.pgfpagerefresh1.page4.Grdtmdataentry1.SetAll("DynamicBackColor", "nBackColor", "Column" )This was tried and tested as early as VFP6 (but it should work even in 3.0) and the grid was extremely fast to repaint, even with the then 200 MHz machines.