Controlling Cell Grouping
Typical stylesheets make the Wolfram System automatically organize notebook cells into convenient groups. You can override this behavior, or control it in any way, using menu items, option settings, or from within a program.
Menu Items
Cell ▶ Grouping ▶ Group Cells — group together selected cells
Cell ▶ Grouping ▶ Ungroup Cells — ungroup selected cells
Cell ▶ Grouping ▶ Manual Grouping — switch off automatic cell grouping
Grouping Options
CellGrouping — whether to do automatic grouping of cells in a notebook
CellGroupingRules — precedence and grouping type for cells
ShowGroupOpener — whether to control cell groups with
CellGroup — symbolic representation of a cell group within a notebook expression