Avatar of gpinfotech
gpinfotechFlag for India

asked on 

how to set Treeview control CheckBoxes as Read Only

Hi Experts,

       How to set Treeview checkboxes as ReadOnly in asp.net , Please help

.NET ProgrammingASP.NETC#

Avatar of undefined
Last Comment
gpinfotech
ASKER CERTIFIED SOLUTION
Avatar of Mlanda T
Mlanda T
Flag of South Africa image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of rajeeshmca
rajeeshmca
Flag of India image

u will have to disable the control to make the checkbox of treeview readonly
Avatar of nandithaa
nandithaa
Flag of India image

You can either disable the whole Treeview by giving
TreeView1.Enabled = false;

Open in new window


Or else if you want to disable only some selected nodes in a treeview then you can hide the checkbox, so that user will not be able to check them.
TreeView1.Nodes[0].ChildNodes[0].ShowCheckBox = false;

Open in new window

Avatar of gpinfotech
gpinfotech
Flag of India image

ASKER

Thanks for your response
Avatar of gpinfotech
gpinfotech
Flag of India image

ASKER

closed
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo