Skip to main content
A newer version of this page is available. .

TreeList.CheckAll() Method

Checks all TreeList nodes.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v19.1.dll

Declaration

public void CheckAll()

Remarks

TreeList nodes can display radio buttons instead of regular check boxes. Radio buttons are mutually exclusive options.

If any radio button is checked and you select another sibling radio button, the former radio button is automatically deactivated.

The CheckAll method’s behavior is as follows when nodes display radio buttons:

  • If no radio button is checked at a specific tree level, TreeList checks the first radio button and all its children.

    The check states of other sibling nodes and their children are not modified.

  • If any radio button is checked at a specific tree level, TreeList retains the checked state for this button and then checks all its children.

    The check states of other sibling nodes and their children are not modified.

To check a specific tree node (and optionally its children), use the TreeList.SetNodeCheckState method.

See Node Checking - Checkboxes and Radio Buttons to learn more.

See Also