How to filter objectlistview's TreeListView?
问题 I tried to filter TreeListView using delegates like in the documentation: Filtering ObjectListView So it goes like this: this.myTree.ModelFilter = new ModelFilter(delegate(object x) { return (((MyTreeNode)x).Type == type); // this code doesn't work, why ? }); As result, myTree should include all nodes with .Type property is equal to type , in my case there are no nodes in the tree, why ???. But, if I set .Type property to type of the root node, then it will be only one root node in the tree,