AutoResize Property

Returns or sets whether column widths will be automatically adjusted when data is loaded.

Syntax

[form!]VSFlexGrid.AutoResize[ = {True | False} ]

Remarks

If the AutoResize property is set to True, the control automatically resizes its columns to fit the widest entry every time new data is read from the database. This occurs by default when the control is loaded and every time the data source is refreshed.

This property only works when the control is bound to a database. If the control is not bound to a database, you may use the AutoSize method to adjust column widths after changes are made to the grid contents.

Data Type

Boolean

Default Value

True

See Also

VSFlexGrid Control