VSFlexGrid Control > VSFlexGrid Properties, Events, and Methods > VSFlexGrid Properties > AutoResize Property |
Returns or sets whether column widths will be automatically adjusted when data is loaded.
[form!]VSFlexGrid.AutoResize[ = {True | False} ]
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.
Boolean
True