tform1.dbgrid1drawcolumncell(sender:tobject;const rect:trect;datacol:integer;
column:tcolumn;state:tgriddrawstate);
begin
with tcustmdbgridcracker(sender) do begin
if zy=1 then
canvas.brush.color:=clyellow
else
canvas.brush.color:=clgreen;
defaultdrawcolumncell(rect,datacol,column,state);
end;
end;