rocedure TForm.DBGridDrawColumnCell(Sender: TObject; const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState);begin if DBGrid.Fields[0].AsInteger < 0 then DBGrid.Canvas.Font.Color := clRed else DBGrid.Canvas.Font.Color := clBlack;{DBGrid.Canvas.Brush, DBGrid.Canvas.MoveTo(Rect.Top, Rect.Left), DBGrid.Canvas.LineTo(Rect.Top, Rect.Right)} DBGrid.DefaultDrawColumnCell(Rect, DataCol, Column, State);end;