BCGControlBar Pro for MFC
virtual BOOL CBCGPGridCtrl::OnBeforeReplaceItem ( int  nRow,
int  nColumn,
CBCGPGridItem pNewItem 

Called by the grid before item replacing.

Override this method to add some custom actions such as existing grid item data cleanup or customizing a new item before adding it to the grid.

nRowA zero-based row index.
nColumnA zero-based column index.
pNewItemA pointer to the grid new item.
Return TRUE to continue replacing or FALSE to keep the current item.