procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;
DataCol: Integer; Column: TColumn; State: TGridDrawState);
begin
if gdselected in state then
with dbgrid1.Canvas do
begin
brush.Color:=clred;//选择颜色为红色
brush.Style:=bssolid;
fillrect(rect);
end;
dbgrid1.DefaultDrawColumnCell(rect,datacol,column,state);
end;
这个我试过了一定行的