cxgrid 根据某一单元格的值去设置所在行中另一单元格的颜色 ( 积分: 100 )

  • 主题发起人 andrew4031
  • 开始时间
A

andrew4031

Unregistered / Unconfirmed
GUEST, unregistred user!
我用这种方法只可以实现根据单元格的值去设置此单元格的颜色
事件OnCustonDrawCell
begin
if aviewinfo.item.caption='类型' then //判断是否自己需要的列
begin
if aviewinfo.value='*' then //设置颜色
begin
acanvas.canvas.brush.color:=clyellow;
end;
end;
end;
 

Similar threads

S
回复
0
查看
956
SUNSTONE的Delphi笔记
S
S
回复
0
查看
779
SUNSTONE的Delphi笔记
S
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
699
import
I
顶部