Search code examples
c#winformsdevexpresstreelist

How to get ChildNodes of selected node in DevExpress XtraTreeList?


I am using DevExpress XtraTreeList. There are no checkboxes used. I want to get all childnode IDs of selected node. Note I already got ID of selected node, I just want to get IDs of child nodes of selected nodes.


Solution

  • Use the TreeListNodesIterator.DoLocalOperation method to iterate via child nodes of specific node and the TreeListNode.GetValue method to obtain child nodes IDs.

    Related links: