I would like to know if the defaultalignment of Advstringgrid is the same with setting the Alayout.TextAlignment on GetCellLayout in FNCGrid? I experienced a weird behavior when editing the cell of an fncgrid when the layout is gtatrailing. The expected behavior when layout is gtatrailing should be the same when the advstringgrid alignment is rightjustify.
procedure TForm4.TMSFNCGrid1GetCellLayout(Sender: TObject; ACol, ARow: Integer;
ALayout: TTMSFNCGridCellLayout; ACellState: TTMSFNCGridCellState);
begin
ALayout.TextAlign := gtaTrailing;
end;
This is how it looked like before editing the cell
This is how it looked like while editing the text 'Sample'.