BCGSoft > Products > Product feature tour

Product feature tour

Context | First | Prev | Next | Last
Fully implemented BCGControlBar Pro (MFC)
Fully implemented BCGSuite (MFC)
Fully implemented BCGControlBar (Microsoft .NET)

Grid Grouping Support

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

Groups by range:

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 ();
Prev  Next