Jump to content
Incus J

How to set FMX TStringGrid Column Sizes?

Recommended Posts

I have a two column TStringGrid on my main form.  I set the column widths in the form designer at design time.  I think this used to work, but at runtime most designer column widths are now ignored - all columns default to the width of the first column.


Is it possible to get the app to apply the other column widths set at design time?  I can set a column width in code :


but that involves a bit of trial and error, so I'd prefer to set it visually.


Incidentally while playing around with this, I found :


autosizes the last column to fill remaining space, which is useful.  However this TStringColumn Align property does not appear in the Object Inspector - it is not a Published property, so this can only be set in code.

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now