I'm trying to find out if a treeview's node has children. If not, I'm going to fill it with children if it contains them.
However, the TreeNodeCollection object does not seem to contain a Count property, so I can't get a count, and i haven't been able to find a "has children" function
Sure I can step through the nodes in the node collection using a for/each loop and use a counter, but that's wicked cheezy.. Does anyone know if there's an easier way to find out if a treeview node has children?
Thanks
--NipsMG
However, the TreeNodeCollection object does not seem to contain a Count property, so I can't get a count, and i haven't been able to find a "has children" function
Sure I can step through the nodes in the node collection using a for/each loop and use a counter, but that's wicked cheezy.. Does anyone know if there's an easier way to find out if a treeview node has children?
Thanks
--NipsMG