BCGControlBar Pro for MFC
void CBCGPGridCtrl::MergeSelection ( BOOL  bRedraw = TRUE)

Merges cells in the current selection range.

Call this function to merge cells within the current selection range.

The function does nothing if the current selection range partially covers other merged cells.

Parameters
bRedrawIf TRUE, the grid will be redrawn when the merge operation completes.