BCGControlBar Pro for MFC
CBCGPGridItem* CBCGPGridCtrl::GetCurSelItem ( CBCGPGridRow pCurRow = NULL) const

Returns selected item.

Returns
A pointer to the currently selected grid item; NULL - if there is no selected item.

Use this function to retrieve the currently selected item. When it returns NULL, try the CBCGPGridCtrl::GetCurSel function to retrieve the currently selected row.

Parameters
pCurRowPointer to the current row. Use this parameter to speed up the function. If this parameter is omitted, the function will loop over all grid rows.