Gets or sets how the optimal width required for this column to completely display its contents, is calculated.
A BestFitMode enumeration value.
The column width is calculated based on text of all cells within this column.
The column width is calculated based on the values in the currently visible cells.
The column width is calculated based on all distinct values in the underlying datasource.
In this mode, the column width is calculated as BestFitMode.AllRows if the total count of rows is less than 3,000, and as BestFitMode.DistinctValues if the total count of rows is greater than or equal to 3,000. Also, if the Smart mode is enabled, the TableView.CustomBestFit is raised, thus allowing you to manually calculate the column width.
The default behavior of all columns displayed within a View, is specified by the TableView.BestFitMode property. The BestFitMode property allows you to override this behavior for individual columns.
Refer to the Best Fit topic to learn more.