procedure TfmSignin.DBGridEh1DrawColumnCell(Sender: TObject;
const Rect: TRect; DataCol: Integer; Column: TColumnEh;
State: TGridDrawState);
begin
if (ADOQuery3.FieldByName('结果').asString <> '√') then //附合条件行变色
DBGridEh1.Canvas.Font.Color := clRed; DBGridEh1.DefaultDrawColumnCell(Rect, DataCol, Column, State); // 生效
end;
DBGridEh1的defaultDrawing属性设为false,窗体激活的时候装载ADOQuery3的结果集,但程序运行的时候提示ADOQuery3:Field'结果'not find,是何原因呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货