BCGSuite for MFC
void CBCGPGridCtrl::FreezeRows ( int  nRowCount,
BOOL  bRedraw = TRUE 
)

Freezes one or more rows.

This function enables the "frozen rows" feature, which allows to keep row(s) visible while the rest of rows are scrolled vertically. Use this function to set up the number of frozen rows. Frozen rows are not scrolled and always visible on top of the grid.

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