Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxTreeViewNodes Class

A tree node container in the Tree View.

#Declaration

Delphi
TdxTreeViewNodes = class(
    TdxTreeViewPersistent
)

#Remarks

The class members allow you to do the following:

The Tree View’s Items property references a TdxTreeViewNodes object.

Refer to the following topic for information on how to use a tree node container: Tree View Control.

#Example

The following code checks all nodes in the Tree View control that have child nodes:

var
  ANode: TdxTreeViewNode;
begin
  dxTreeViewControl1.BeginUpdate;
  for ANode in dxTreeViewControl1.Items do
    ANode.Checked := ANode.Count > 0;
  dxTreeViewControl1.EndUpdate;
end;

Check Parent Nodes

Note

A Tree View control shows node checkboxes if the control’s OptionsView.ShowCheckBoxes property is set to True.

#Inheritance

See Also