This is how you do it.
its 14 after midnight and I had to try it...need a life...I am sure you all know the feeling...sad
Nasib Kalsi: you beat me to it though (damn)
Use Nasib's excellent example for Visits
Use the following for Changes.
Create a logical field in your table (lets call it checkfield). Depending on the columns you want to recolor you may have to create a few more
for this example, lets change only one column. In the textbox Valid() of the column put in:
select customer
if oldval(<<fieldname>>,"customer") <> this.value
replace checkfield with .t.
endif
oGrid = thisform.Grid1
nRec = 0
scan
if customer.checkfield
oGrid.column(3).dynamicbackcolor = "IIF(checkfield, RGB(255,0,0), RGB(255,255,255))"
nRec = Recno()
endif
endscan
if nrec > 0
goto nrec
endif
If you have vfp9 use a Select into cursor, so you dont have to change the structure of the table:
select company,cast(company as L) as checkfield ;
from customer into cursor DamnGrid readwrite
*enable buffering for oldval() to work
=cursorsetprop("buffering",5,"DamnGrid")
now use this cursor for the grid
Fine tune this and it should do what you want...
Good Night.