Supposed you have a table (salary), the following procedure will handle records
in DBGrid with different font color. Hope it's useful to you.
procedure TfrmSalary.DBGrid1DrawColumnCell(Sender: TObject;
const Rect: TRect; DataCol: Integer; Column: TColumn;
State: TGridDrawState);
var
sal,l1,l2,l3:integer;
color1:TColor;
begin
l1:=200;
l2:=500;
l3:=1000;
sal:=adoQuery1.FieldByName('salary').AsInteger;
if sal>l3 then
color1:=clBlue
else
if sal>l2 then
color1:=clGreen
else
if sal>l1 then
color1:=clRed;