treeview checkbox
C#
2
Posts
2
Posters
0
Views
1
Watching
-
hi, how i can remove by code the checkbox from one node of the treeview nodes cause i want to make a treeview with one root and sub nodes and checkboxes beside the subnodes only without a checkbox beside the root >>> Thanks alot Hamody
-
hi, how i can remove by code the checkbox from one node of the treeview nodes cause i want to make a treeview with one root and sub nodes and checkboxes beside the subnodes only without a checkbox beside the root >>> Thanks alot Hamody
The checkboxes apply for the entire treeview as such, and hence you would have to validate it in your code. In tvwList_MouseMove() event, use eventargs to find tvwList.GetNodeAt(e.X, e.Y) to get the current node, and disable the checkbox there. (nod.Checked = false;)