TealWren is on the right track... Try this in the OnDrawDataCell event:
procedure TForm1.DBGrid1DrawDataCell(Sender: TObject; const Rect: TRect;
Field: TField; State: TGridDrawState);
begin
with DBGrid1.Canvas do
begin
FillRect(Rect);
if (Field.FieldName = 'TrueFalse') and (Field.AsBoolean = True) then
Font.Color := clRed
else
Font.Color := clBlack;
TextRect(Rect, Rect.Left +1,Rect.Top +1, Field.AsString);
end;
end;
Andreas Nordlund
Software developer