procedure TForm1.suiDBGrid1DrawColumnCell(Sender: TObject;
const Rect: TRect; DataCol: Integer; Column: TColumn;
State: TGridDrawState);
begin
if ADOQuery1.FieldByName('序号').AsInteger<300 then
begin
suiDBGrid1.Canvas.Brush.Color:=clGreen;
suiDBGrid1.DefaultDrawColumnCell(Rect,DataCol,Column,[gdFixed,gdFocused,gdSelected]);
end;
end;