DBGrid i kolorowanie tekstu

0

Witam.
Czy w DBGrid jedna komórka może mieć tekst w innym kolorze. Chodzi mi o wyszczególnienie paru rzeczy.

0

kiedys pisalem cos takiego

procedure TfrmMain.StrTDrawCell(Sender: TObject; ACol, ARow: Integer;
  Rect: TRect; State: TGridDrawState);
var i : integer;
begin
   StrT.Canvas.Brush.Color:= $00FFD5D5;

   if (Arow > 0) and (ACol = 0) then  StrT.Canvas.FillRect(StrT.CellRect(0,Arow));
   if (Arow > 0) and (ACol = 0) then  StrT.Canvas.TextOut(StrT.CellRect(ACol,ARow).Left+2, StrT.CellRect(ACol,ARow).Top+2, StrT.cells[ACol, Arow]);

end;

Na canvasie masz tez opcje Canvas.Font.Color
Pobaw sie tym

1 użytkowników online, w tym zalogowanych: 0, gości: 1