Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Treeview checkbox

Status
Not open for further replies.

shams123

Programmer
Jan 27, 2006
81
MY
Hi guys,

I am using the treeview control in my page to display categories and subcategories. To show them as active or inactive, I am using checkboxes against each node. Now, on this page I don't want the user to change the checkbox state, therefore is it possible I can disable these checkboxes? Just like the normal "disabled" method we use in the checkbox control?

Thanks
 
Hi mate,

A normal checkbox control does, but I can't see how do I disable a checkbox that's shown in the treeview control.
 
A CheckBox in a treeview (or in anyother control for that matter) is still a CheckBox. Get a reference to it (you may have to use FindControl to do this) and set it as normal.


____________________________________________________________
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]

Need help finding an answer? Try the Search Facility or read FAQ222-2244.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top