Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. TreeView Nodes

TreeView Nodes

Scheduled Pinned Locked Moved C#
help
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mohammed Elkholy
    wrote on last edited by
    #1

    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

    X 1 Reply Last reply
    0
    • M Mohammed Elkholy

      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

      X Offline
      X Offline
      Xmen Real
      wrote on last edited by
      #2

      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%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

      ----------------------------------------------- 128 bit encrypted signature, crack if you can

      M 1 Reply Last reply
      0
      • X Xmen Real

        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%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

        ----------------------------------------------- 128 bit encrypted signature, crack if you can

        M Offline
        M Offline
        Mohammed Elkholy
        wrote on last edited by
        #3

        thanks for your replay but i need the nodes hiden i cant remove it becouse i depend on it in my code

        MD_NADA

        P H 2 Replies Last reply
        0
        • M Mohammed Elkholy

          thanks for your replay but i need the nodes hiden i cant remove it becouse i depend on it in my code

          MD_NADA

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          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.

          My blog | My articles | MoXAML PowerToys | Onyx

          1 Reply Last reply
          0
          • M Mohammed Elkholy

            thanks for your replay but i need the nodes hiden i cant remove it becouse i depend on it in my code

            MD_NADA

            H Offline
            H Offline
            Henry Minute
            wrote on last edited by
            #5

            Another possible solution is to handle the OnBeforeSelect event of the TreeView. Check the Node passed in the TreeViewCancelEventArgs and if it is one that you would like disabled, use the Cancel property from the TreeViewCancelEventArgs 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 the DrawMode property of the TreeView 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.”

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups