默认DBGRID选中行的颜色为深蓝色,可以在程序中改变
在DBGRID的OnDrawColumnCell中写入
if (State=[gdSelectd..gdFocused,gdCurrent]) then
begin
Grid.Canvas.Font.Color :=clRed;
Grid.Canvas.Font.Brush.Color :=clInfor;
Grid.DefaultDrawColumnCell(Rect,DataCol,Column,State);
end;
本文来自博客园,作者:del88,转载请注明原文链接:https://www.cnblogs.com/del88/archive/2012/01/05/2313483.html
浙公网安备 33010602011771号