BCGControlBar Pro for MFC
BOOL BCGP_GRID_FILTERBAR_OPTIONS::m_bAutoExpandGroups

Specifies whether groups (items with sub-items) will be automatically expanded when sub-item is included in the filtering results.