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. How can we disable individual nodes in a treeview in .Net?

How can we disable individual nodes in a treeview in .Net?

Scheduled Pinned Locked Moved C#
csharpquestion
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.
  • T Offline
    T Offline
    TinyTin
    wrote on last edited by
    #1

    Hi, How can we disable individual nodes in a treeview in .Net? Tin

    C E 2 Replies Last reply
    0
    • T TinyTin

      Hi, How can we disable individual nodes in a treeview in .Net? Tin

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I'm pretty sure you can't.

      Christian Graus - C++ MVP

      1 Reply Last reply
      0
      • T TinyTin

        Hi, How can we disable individual nodes in a treeview in .Net? Tin

        E Offline
        E Offline
        ednrgc
        wrote on last edited by
        #3

        You cannot disable individual nodes.

        T 1 Reply Last reply
        0
        • E ednrgc

          You cannot disable individual nodes.

          T Offline
          T Offline
          TinyTin
          wrote on last edited by
          #4

          is there any workaround?

          L 1 Reply Last reply
          0
          • T TinyTin

            is there any workaround?

            L Offline
            L Offline
            lmoelleb
            wrote on last edited by
            #5

            Depends on what you are doing: WPF: Individual nodes can be disabled, so no problem. WinForm: Handle the events on the tree - so if your node is selected, deselect it again (this probably won't be pretty to look at - in the Form or in the code, but that is the price you pay when using an obsolete GUI) ASP.NET: You might pull something off client side, but I do not know how to do it - and if it is possible.

            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