Automatically adjusts the width of a column to accommodate the widest text value.
Source position: grids.pas line 1773
public procedure TCustomStringGrid.AutoSizeColumn( |
aCol: Integer |
); |
aCol |
|
Column number resized in the method. |
AutoSizeColumn sets the column width to the length of the widest text found in the column specified by ACol.
Tip: Use goDblClickAutoSize in Options to allow columns to be automatically resized when doubleClicking the column border.
|
Resizes all columns to fit in the longest text in each. |