TreeView Nodes
-
Hello everybody i have a treeview it has set of nodes , i want to set some of them visable to false , but i can't find visable or enable proprty what can i do please thnks for help M.Elkholy
MD_NADA
-
Hello everybody i have a treeview it has set of nodes , i want to set some of them visable to false , but i can't find visable or enable proprty what can i do please thnks for help M.Elkholy
MD_NADA
no, there is no property exists in TreeView to hide a node but you can remove a node.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can
-
no, there is no property exists in TreeView to hide a node but you can remove a node.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can
thanks for your replay but i need the nodes hiden i cant remove it becouse i depend on it in my code
MD_NADA
-
thanks for your replay but i need the nodes hiden i cant remove it becouse i depend on it in my code
MD_NADA
Just because you need the nodes hidden doesn't mean that you can do it - you may need to investigate a third party control to see if you can find this feature there.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
thanks for your replay but i need the nodes hiden i cant remove it becouse i depend on it in my code
MD_NADA
Another possible solution is to handle the
OnBeforeSelect
event of theTreeView
. Check theNode
passed in theTreeViewCancelEventArgs
and if it is one that you would like disabled, use theCancel
property from theTreeViewCancelEventArgs
to stop user interaction. Of course it might be polite to give the user a notification for the reason. Alternatively combine the above, without the user notification, with drawing the nodes that should be disabled yourself in a dimmed-out style. Investigate theDrawMode
property of theTreeView
to find out how.Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”