Returns or sets whether AutoSize will adjust column widths or row heights to fit cell contents.
Syntax
[form!]VSFlexGrid.AutoSizeMode[ = AutoSizeSettings ]
Remarks
Valid settings for the AutoSizeMode property are:
Constant |
Value |
Description |
flexAutoSizeColWidth |
0 |
Adjust column widths to accommodate the widest entry in each column. |
flexAutoSizeRowHeight |
1 |
Adjust row heights to accommodate the longest entry in each row. |
The flexAutoSizeRowHeight setting is useful when text is allowed to wrap within cells (see the WordWrap property) or when cells have fonts of different sizes (see the Cell property).
Data Type
AutoSizeSettings (Enumeration)
Default Value
flexAutoSizeColWidth (0)