BCGSuite for MFC
void CBCGPGridCtrl::EnableColumnAutoSize ( BOOL  bEnable = TRUE)

Enables or disables column auto-sizing feature of the grid control

Use this function to enable or disable column auto-sizing feature of the grid control. If column auto-sizing is enabled, the grid automatically resizes its columns to fit the working area. The width of the locked columns is not changed.

Parameters
bEnableSpecifies whether to enable (TRUE), or disable (FALSE) column auto-size feature.