[grid] column font settings

Grid's column font settings at design time is ignored while runtime.

What I'm trying to achieve is an inreasing font size. Tried to setup up all font settings in grid with same result: default font (size) at runtime.

Can you please any hints.

TIA.

Hi,


You can take a look at the OnGetCellLayout, this event can be used to customize the cell appearance regardless of the state.

That's not exactly what I expected, but yeah, that should work. Thank you.

Inplace editors does not recognise font sizes.

In browse mode settings made in GridGetCellLayout event are working but as soon I go in edit mode original (and small) fonts are displayed. Looks ugly - so what can I do to get editors in same layout like in browse mode?
OMG I have to remember to my very early beginnings:


type
  TMyControl = class (TWinControl);

procedure TFrameBaseDBGrid.GridGetCellEditorProperties(Sender: TObject; ACol,
  ARow: Integer; CellEditor: TWinControl);
begin
  inherited;
  if Assigned(CellEditor) then
    TMyControl(CellEditor).Font.Size := 12;
end;