BCGControlBar Pro for MFC
void CBCGPGridCtrl::FreezeColumns ( int  nColumnCount,
BOOL  bRedraw = TRUE 
)

Freezes one or more columns.

This function enables the "frozen columns" feature, which allows to keep column(s) visible while the rest of columns are scrolled horizontally. Use this function to set up the number of frozen columns. Frozen columns are not scrolled and always visible at the left side of grid.

Parameters
nColumnCountSpecifies the number of columns to be frozen. Specify -1 to unfreeze all columns.
bRedrawIf TRUE, the grid control will be redrawn.