如下所示即可:
procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;
DataCol: Integer; Column: TColumn; State: TGridDrawState);
begin
if Column.FieldName <> 'SIZE' then Exit;
if Table1.FieldByName('SIZE').AsInteger>10 then
begin
DBGrid1.Canvas.Brush.Color:=clblue; //改变底色,根据情况是否需要
DBGrid1.Canvas.Font.Color:=clred; //改变字体颜色,根据情况是否需要
DBGrid1.DefaultDrawColumnCell(Rect,DataCol,Column,State);
end;
end;