首页 Delphi 正文
  • 本文约206字,阅读需1分钟
  • 1541
  • 0
举报该广告
DBGridEh1.DrawColumnCell   //选择整行变色

DBGridEh1.DrawColumnCell //选择整行变色

摘要
DBGridEh1.DrawColumnCell  //添加如下代码
//选择整行变色
begin
if gdSelected in State then
  DBGridEh1.Canvas.Brush.Color := $00F2DCB7;
  DBGridEh1.DefaultDrawColumnCell(Rect, DataCol, Column, State);
end;
DBGridEh1.DrawColumnCell  //添加如下代码
//选择整行变色
begin
if gdSelected in State then
  DBGridEh1.Canvas.Brush.Color := $00F2DCB7;
  DBGridEh1.DefaultDrawColumnCell(Rect, DataCol, Column, State);
end;

📱 扫码关注公众号

公众号二维码

扫描二维码关注我们,获取更多精彩内容
实时更新 · 干货满满

收藏

扫描二维码,在手机上阅读
评论
更换验证码
友情链接