TMSFMXGrid font family

I don't see a property for font setting in the grid and I don't want to leave this to the Style Designer.  I would prefer to override the default font family setting for the TMSFMXGrid component.


Would this work?

TMSFMXGrid1.Canvas.Font.Family := 'font name';

OK. So from the documentation it would seem that I have to do it something like this:


for I := 0 to ColumnCount - 1 do
begin
  for J := 0 to RowCount - 1 do
    TMSFMXGrid1.FontNames[I,J] := 'font family';
end;

Hi, 


There are various ways of setting the font, below is a sample that overrides the default font settings for all cells and cell states:

procedure TForm1.TMSFMXGrid1GetCellLayout(Sender: TObject; ACol,
  ARow: Integer; ALayout: TTMSFMXGridCellLayout; ACellState: TCellState);
begin
  ALayout.Font.Family := ...;
end;

Kind Regards, 
Pieter

Thanks!