Enable check box for leaf nodes only

  • Thread starter Thread starter Zen
  • Start date Start date
Can be done!

Zen said:
Is there a way to enable check box for leaf nodes only for the TreeView?

Thanks!

Hi Zen, there is a work around for this ....

1. Use a image list and give two images (one) un-checked and (two) for checked

2. Then set the checked property false, ( we donot want to use this now) ...

The leaf node will have selected index = 0 (of Image list) and = 1 for checked!

Let me know if that works for you

Jay Dubal
Analyst Programmer (.NET/ C#)
GatewayTechnolabs Pvt. Ltd.
 
Back
Top