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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top