BCGSuite for MFC
BOOL CBCGPGridColumnsInfo::SetColumnWidthAutoSize ( int  nColumn,
BOOL  bBestFit 
)

Enables or disables automatic size for a column.

Returns
Nonzero if the function succeeded.

Call this method to turn auto size feature for a column on or off.

Parameters
nColumnA zero-based index of a column.
bBestFitTRUE - the Grid should call CBCGPGridCtrl::OnGetColumnAutoSize to calculate column width. FALSE - the column width is set by SetColumnWidth.