I'm having trouble changing the text color of the records displayed in DBGgrid in Delphi Berlin (10.1 update 1). When you try to change the font color and turn on italic and bold, all records appear correctly except the selected record that displays the duplicate text, one with the font changes and the other with no change at all. It is worth mentioning that source down is only for testing so it changes the color of all the records in the system there will be situations where this color will be changed or not. Here is a short excerpt of the code and image that illustrates the problem.
procedure TForm2.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;
DataCol: Integer; Column: TColumn; State: TGridDrawState);
begin
TDBGrid(Sender).Canvas.Font.Style := [fsItalic, fsBold];
TDBGrid(Sender).Canvas.Font.Color := clMaroon;
TDBGrid(Sender).Canvas.FillRect(Rect);
TDBGrid(Sender).DefaultDrawColumnCell(Rect, DataCol, Column, State);
end;