Click here to Skip to main content
15,893,190 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hai,
in my app i used a treeview and a context menu wiht menu items ADD,EDIT,DELETE,
i deleted individal items successfully, but when i am deleting a parent folder which has sub folders is not deleted,
can u help me...
Thanks & Regards.
Posted

1 solution

i deleted individal items successfully,
Not sure of what kind of help you are looking for but this should do: Since you are already able to delete individual items, now in case of parent you need to execute the same code but in a loop kind of. You need to find the children of the parent and delete them one-by-one.

You can do this in treeview, in dataset or even in Database based on your need. Try!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900