BCGControlBar Pro for MFC
BOOL CBCGPGridRow::EnableDynamicSubItems ( BOOL  bEnable = TRUE,
BOOL  bRemoveSubItemsOnCollapse = FALSE 
)

Enables or disables the grid row dynamic subitems.

When the dynamically created subitems are enabled, the row always has the "Expand" button, and when the user clicks this button, the framework calls the CBCGPGridCtrl::OnFillRowDynamicSubItems() virtual method to fill the subitems list.

Parameters
bEnableWhen this parameter is True, the grid row subitems are dynamically created.
bRemoveSubItemsOnCollapseSpecifies whether the dynamically created subitems should be freed upon the grid row collapsing.