The list expands and collapses items with minimal application intervention. The application can expand and collapse items using the ItemClass.Expand and ItemClass.Collapse methods without having to add or remove items. The list takes care of hiding and showing items as needed.
The user expands and collapses items by clicking their expand/collapse buttons, which doesn't choose the item or close the dropdown, or with the Left and Right keys in a DropDownList combo box. When items are expanded or collapsed, the ItemExpanded or ItemCollapsed event of the list occurs.
An application can also add the dependent items only when needed: it adds the parent items, marks them as expandable without adding their dependents (see the ItemClass.ExpandCollapseButton property) and adds the dependents when the user expands the item.
The Filter search mode expands the parent items of matching items while it filters the list and collapses them again when the filter ends (see Searching).