BCGSuite for MFC
int CBCGPGridCtrl::InsertGroupColumn ( int  nPos,
int  nColumn,
BOOL  bUpdateSelection = FALSE 
)

Inserts a column into list of columns the grid items are grouped by.

Returns
Index of the column in the internal list of grouping columns, if successful; otherwise -1.

Insert the column into internal list of columns the grid items are grouped by.

Parameters
nPosThe zero-based index in the internal list of grouping columns. The column position specifies the grouping order.
nColumnThe zero-based index of the column to be inserted.
bUpdateSelectionSpecifies whether the recent grid selection will be restored after changing the grid structure.