See
check-and-uncheck-all-the-nodes-of-the-tree-view-in-c-sharp[
^]
Note that you tried to avoid going through the elements, which of course is
impossible.
the solutions could vary, using iteration or recursion.
Another thing you can optionally do is do lazy uhchecking, meaning that you uncheck only the displayed nodes, and when someone opens tree nodes uncheck all those as well.
This approach has its disadvantages like if your app drops suddenly those unopened are unchanged, but I guess if unchecking takes too long for you, then you probably used lazy loading of the nodes too...
* How big is your tree that unchecking all nodes is so time consuming??
Good luck,
Edo