在DBGRID的ONDRAWDATACELL中写如下代码:
if gdselected in state then
begin
dbgrid1.Canvas.Brush.Color:=clred; //选中的单元格的颜色
dbgrid1.Canvas.FillRect(rect);
dbgrid1.Canvas.Pen.Color:=clwhite; //选中的单元格的字体颜色
dbgrid1.Canvas.TextOut(rect.left,rect.top,field.value);
end;