How to traverse the nodes for a DevExpress.XtraTreeList.TreeList

Kyra picture Kyra · Sep 15, 2010 · Viewed 7.2k times · Source

I am trying to traverse the nodes of the DevExpress.XtraTreeList.TreeList and it isn't working.

Basically all I have is the caption and value of the node I want to look for. Is there a simple way I can find it. After it is found I am just moving the focus to the new node and I already know how to do that if I have the proper index.

Thanks

Answer

DevExpress Team picture DevExpress Team · Sep 15, 2010

Such tasks should be implemented using a node iterator. Please refer to this example

in this regard. The NodesIterator is described in our documentation:

NodesIterator