procedure TFrm_List_PIS_Purchase.cxGrid1DBTableView1CustomDrawCell(
Sender: TcxCustomGridTableView; ACanvas: TcxCanvas;
AViewInfo: TcxGridTableDataCellViewInfo; var ADone: Boolean);
begin
if cxGrid1tDBTableView1.Columns[0].DataBinding.Field.AsString<>'' then
begin
ACanvas.Pen.Color := clHotLight;
ACanvas.Canvas.moveto(AViewInfo.Bounds.left, AViewInfo.Bounds.top);
ACanvas.Canvas.lineto(AViewInfo.Bounds.Right, AViewInfo.Bounds.top);
end;
end;我想要实现的是将第0列如果有值的话,则在该列画一条线,而这段代码实现不了,麻烦帮忙指点一下
Sender: TcxCustomGridTableView; ACanvas: TcxCanvas;
AViewInfo: TcxGridTableDataCellViewInfo; var ADone: Boolean);
begin
if cxGrid1tDBTableView1.Columns[0].DataBinding.Field.AsString<>'' then
begin
ACanvas.Pen.Color := clHotLight;
ACanvas.Canvas.moveto(AViewInfo.Bounds.left, AViewInfo.Bounds.top);
ACanvas.Canvas.lineto(AViewInfo.Bounds.Right, AViewInfo.Bounds.top);
end;
end;我想要实现的是将第0列如果有值的话,则在该列画一条线,而这段代码实现不了,麻烦帮忙指点一下
解决方案 »
- 备份和恢复的SQL语句是什么?
- 一个很重要的问题.关于indy http提交特殊字符的问题.
- mediaplay控件在哪个面板里?
- 那有pascal object基础的书,请建议一本。多谢。
- 打印预览频繁出错,100大洋在线求教,请高手指点!!!
- 加薪后,是走还是留?高分相赠
- 日期型的字段如何附值?
- 三层 的棘手问题
- 在获知两台在线的计算机IP后(分别连上internet),是否可以像局域网一样使用sql server,来实现数据的共享
- Delphi 中LPtpDP,DPtoLP的用法
- 急!小数点问题
- fastreport 用footer的onbeforprint写脚本的方法实现空行打印后,footer本身内部的sum函数等无法显示了?
begin
......end;
目前我测试了一下,这个判断是正常的,只是里面的执行情况有问题