Y
yuanyoufa
Unregistered / Unconfirmed
GUEST, unregistred user!
我的代码如下:<br>procedure TfrmBdDetail.DBGridEh1DrawColumnCell(Sender: TObject;<br> const Rect: TRect; DataCol: Integer; Column: TColumnEh;<br> State: TGridDrawState);<br>begin<br> if adoquery1.fieldbyname('合计数量').AsInteger> adoquery1.fieldbyname('KC').AsInteger then<br> begin<br> (Sender as TDBGridEH).Canvas.Brush.Color := $008080FF;<br> end;<br> DBGridEh1.DefaultDrawColumnCell(Rect,DataCol,Column,State); //这里总是报错:Incompatible types<br>end;