BCGControlBar Pro for MFC
BOOL CBCGPGridCtrl::IsColumnSelected ( int  nColumn,
BOOL  bAllItemsSelected = FALSE 
) const

Tells whether a column is selected, or not.

Returns
Nonzero, if the grid control has any selected item in specified column; otherwise - 0.

Use this function to determine whether a column is selected or not. The function is used to highlight header for selected range.

Parameters
nColumnSpecifies column index.
bAllItemsSelectedIf TRUE, the row is treated as selected if all items in the column are selected. If FALSE, the row is treated as selected if at least one item in the column is selected.