Editing a cell and text alignment is gtaTrailing


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.

Thank you!

We have investigate this here and couldn't immediately see an issue, can you provide a code snippet which indicates the issue?

Good day! This is what I did:

procedure TForm4.TMSFNCGrid1GetCellLayout(Sender: TObject; ACol, ARow: Integer;
ALayout: TTMSFNCGridCellLayout; ACellState: TTMSFNCGridCellState);
ALayout.TextAlign := gtaTrailing;
This is how it looked like before editing the cell

This is how it looked like while editing the text 'Sample'.

Let me know what I can do. Thank you.


We have investigated this here and couldn't reproduce. Are you using the latest version of the TMS FNC UI Pack? (v

1 Like

Thank you! works fine after updating

Thanks for reporting!