* Grid.afterrowcolchange if recno(this.recordsource) # Thisform.ncurrec thisform.nCurrec = recno() Thisform.setall("dynamicbackcolor", ; "iif(recno(["+this.recordsource+"]) = "+transform(thisform.nCurRec,"99999")+; ",RGB(128,128,128),rgb(255,255,255)","column") this.refresh() endif* For this work outside of the grid you could add a property for caller reference, after moving rec pointer set it to "this" and call ...grid.setfocus()(ie: thisform.oCaller) and change the afterrowcolchange a little bit :
if recno(this.recordsource) # Thisform.ncurrec thisform.nCurrec = recno() Thisform.setall("dynamicbackcolor", ; "iif(recno(["+this.recordsource+"]) = "+transform(thisform.nCurRec,"99999")+; ",RGB(128,128,128),rgb(255,255,255)","column") this.refresh() endif if type("thisform.oCaller") = "O" thisform.oCaller.setfocus() thisform.oCaller = " " endif