1.用其他颜色绘制:
dbgrid1.Canvas.brush.color:=其他背景颜色;
dbgrid1.Canvas.FillRect(rect);
dbgrid1.Canvas.font.color:=其他字体颜色;
dbgrid1.Canvas.TextOut(rect.left,rect.top,column.Field.AsString);
2.其实只有当selected时才有颜色变化,所以在OnDrawColumnCell里面这样判断:
if gdselected IN State then
//当前Cell被选中
//用特殊颜色画该Cell
else
//用默认表格颜色画Cell