BCGControlBar Pro for MFC
BOOL CBCGPGridCtrl::SetSel ( const CBCGPGridItemID idItem,
BOOL  bSelect = TRUE,
BOOL  bRedraw = TRUE 
)

Changes a specified grid item selection state.

Parameters
idItemThe identifier that points to the grid item object.
bSelectSpecifies whether a given grid item should be selected.
bRedrawIf TRUE, the grid control should be redrawn.