Jump to content

Change the font and color of the line in dbgrid


AndersonSOS

Recommended Posts

procedure TMainForm.UniDBGrid1DrawColumnCell(Sender: TObject;

  ACol, ARow: Integer; Column: TUniDBGridColumn; Attribs: TUniCellAttribs);

begin

  if UniDBGrid1.DataSource.DataSet['Name'] = 'Brazil' then

  begin

    Attribs.Font.Color := clBlack;

    Attribs.Font.Style := [fsBold];

    Attribs.Color := RGB(255, 231, 147);

  end;

end;

Link to comment
Share on other sites

  • 5 months later...
×
×
  • Create New...