BCGControlBar Pro for MFC
BOOL CBCGPGridCtrl::SetColumnLocked ( int  nCol,
BOOL  bLockedSize = TRUE 
)

Locks the width of a column.

Returns
Nonzero if successful; otherwise 0.

Use this function to lock the width of a column.

Some columns of the grid control may have fixed width. The width of the locked columns can't be changed by user or automatically by auto-size feature.

Parameters
nColThe zero-based index of the column
bLockedSizeTRUE, if the column should lock its size. FALSE, if the column should not be locked.