if DM.query.fieldbyname('operations').asstring='аннуляция' then
DBGrid1.Canvas.Brush.Color:=clSkyBlue;
if DM.query.fieldbyname('operations').asstring='возврат' then
DBGrid1.Canvas.Brush.Color:=clred;
TDBGrid(Sender).DefaultDrawColumnCell(Rect,DataCol,Column,State);
1 个回答