孤独的猫

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

默认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;

posted on 2011-07-04 21:45  孤独的猫  阅读(1372)  评论(0编辑  收藏  举报