S showbie Unregistered / Unconfirmed GUEST, unregistred user! 2007-05-25 #1 我在数据库表里设置了store_num,low_limit,up_limit三个字段,当store_num在low_limit和up_limit范围之外时,在dbgrid中以红色显示。
C ChrisMao Unregistered / Unconfirmed GUEST, unregistred user! 2007-05-25 #2 TO LZ 可以在Grid的DrawColumnCell事件中指定: if (StoreNumField.AsFloat <= LowLimitField.AsFloat) or (StoreNumField.AsFloat >= UpLimitField.AsFloat) then begin DBGrid1.Canvas.Brush.Color := clRed; end;
TO LZ 可以在Grid的DrawColumnCell事件中指定: if (StoreNumField.AsFloat <= LowLimitField.AsFloat) or (StoreNumField.AsFloat >= UpLimitField.AsFloat) then begin DBGrid1.Canvas.Brush.Color := clRed; end;
S showbie Unregistered / Unconfirmed GUEST, unregistred user! 2007-05-26 #5 chrismao阁下; 我用你提供的方法也没有解决问题啊!麻烦你再仔细点,我可是个菜鸟!万分感谢!
C ChrisMao Unregistered / Unconfirmed GUEST, unregistred user! 2007-05-27 #7 楼主,你要把Grid的DefaultDrawing设为False使用