if Trim(dbtvBussiness.DataController.DataSet.FieldByName('hgyf').AsString)='合格' then begin ACanvas.Brush.Color := clYellow; ACanvas.Font.Color := clBlack; ACanvas.FillRect(AViewInfo.Bounds); end else begin ACanvas.Brush.Color := clred; ACanvas.Font.Color := clwhite; ACanvas.FillRect(AViewInfo.Bounds); end;代码如上,问题是,如果第一条记录为不合格,则无论下面的为合格还是不合格,全部为不合格的颜色,大家帮忙看下问题出在哪