Grid Grouping Support

Fully implemented BCGControlBar Pro (MFC)

Fully implemented BCGSuite (MFC)

Fully implemented BCGControlBar for .NET

The Grid control allows grouping data by single or multiple columns. The user can either set grid column(s) that will be used for grouping or enable the "Group By" box where grouped columns can be added at runtime.

Additionally, the grid control offers flexible support for custom grouping rules.

Groups by range:

Groups by range:

Adding a column to "Group By" box:

Adding a column to "Group By" box:

Sample code:

CBCGPGridCtrl m_wndGrid;

// Create grid control:
m_wndGrid.Create (WS_CHILD | WS_VISIBLE, rect, this, ID_GRID);

// Group by first column:
m_wndGrid.InsertGroupColumn (0, 0);

// Enable "Group By" box and column chooser:
m_wndGrid.EnableGroupByBox ();
m_wndGrid.ShowColumnsChooser ();