BCGSuite for MFC
BOOL CBCGPGridCtrl::SetWholeRowSel ( BOOL  bWholeRowSel = TRUE)
inline

Switches between selection by row and selection by item.

Use this function to switch between selection by row and selection by item. When selecting by row, the grid control does not select single items, it selects all items in the row and treats this selection as one selected row. Please note that this method works only for a read-only grids. If you need to change this behavior and allow to select row(s) in the regular (not ready-only) grid control, please set m_bWholeRowSel member value to TRUE in your CBCGPGridCtrl-derived class constructor. By default, the grid control selects by item.

Parameters
bWholeRowSelTRUE - select by row; FALSE - select by item.