checking the children of a node in a TreeView
-
i have a standard treeview control with checkboxes, how can i check all the children of a node when the parent is checked? i already have events for before and after check so i assume it must go in there but the problem i have is finding which node is selected as a node doesn't have to be selected for it to be checked. Does anyone have any ideas as its really starting to annoy me as i know it must be so simple :( Thanks
-
i have a standard treeview control with checkboxes, how can i check all the children of a node when the parent is checked? i already have events for before and after check so i assume it must go in there but the problem i have is finding which node is selected as a node doesn't have to be selected for it to be checked. Does anyone have any ideas as its really starting to annoy me as i know it must be so simple :( Thanks
-
i have a standard treeview control with checkboxes, how can i check all the children of a node when the parent is checked? i already have events for before and after check so i assume it must go in there but the problem i have is finding which node is selected as a node doesn't have to be selected for it to be checked. Does anyone have any ideas as its really starting to annoy me as i know it must be so simple :( Thanks
check this TreeView, by recursion you can check anything you want ;):-D http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=b650f7fb-147d-4326-8d83-cb51d89a4ca5