FMX Grid set column size from text width?


I'm just learning my way around FMX Grid.  How can I set a column's width to the width of the longest text string in the column.  I searched the developers guide but didn't see anything helpful.  Thanks in advance for any enlightenment.

You can do this with grid.AutoSizeColumn.


  TMSFMXGrid1.Cells[1,1] := 'This is a long text';
  TMSFMXGrid1.AutoSizeColumn(1, true);

hanks Bruno,
That works.
Is there a document that explains AutoSizeColumn and other things left out of the developer's guide?

This was apparently an oversight that it is not in the PDF guide. We'll look to complete it with this info.