Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to automatically select or deselect the all child nodes whenever its parent Node is selected or deselected?

Tags:

c#

winforms

I have one Tree View Control with check boxes in my Windows Forms Application.How to automatically select or deselect the all child nodes whenever its parent Node is selected or deselected?

like image 727
Saravanan Avatar asked Apr 21 '11 06:04

Saravanan


1 Answers

If I'm not mistaken, the sample code in the documentation for the AfterCheck event does exactly what you want.

like image 120
Frédéric Hamidi Avatar answered Sep 28 '22 06:09

Frédéric Hamidi