Auto-Sizing
FlexGrid has autoSizeColumns and autoSizeRows methods to automatically size rows and columns to fit their content.
The auto-size methods take special styles and formats applied to the cells into account.
For example, click this button to size the columns of the grid below to fit their content.
Automatically resizing rows and columns is one of the
most time-consuming grid operations. If your grid has
more than a few hundred rows, avoid auto-sizing and
consider setting the column sizes to explicit numeric
values instead.