2

hi i am using a treeview control in my application i want to checked all child node by clicking on the parent node .how can i do this task

manish patel
  • 1,409
  • 3
  • 12
  • 13
  • Where are you stuck? I don't have code at hand.. however looping over children of a node and toggling the Checked property should be simple. – Gishu Feb 01 '10 at 06:26

1 Answers1

1

I think it's best that you take a look at the documentation for TreeView.AfterCheck in MSDN. The example provided performs exactly the function you are asking for, protects against a few common edge cases, and it's heavily commented.

Aaronaught
  • 120,909
  • 25
  • 266
  • 342