My Stringgrid by default has a font size in 12, but because of using this that columns have a inferior font size.
procedure TfrmMain.myGridPrepareCanvas(sender: TObject; aCol,
aRow: Integer; aState: TGridDrawState);
var
MyTextStyle: TTextStyle;
begin
if (aRow >= myGrid.FixedRows) then begin
if (aCol = 1) then begin
MyTextStyle.Alignment := taCenter;
myGrid.Canvas.TextStyle := MyTextStyle;
end else if (aCol = 4) then begin
MyTextStyle.Alignment := taRightJustify;
myGrid.Canvas.TextStyle := MyTextStyle;
end;
end;
end;