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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. disable a treenode in a treeview

disable a treenode in a treeview

Scheduled Pinned Locked Moved C#
data-structuresquestion
3 Posts 3 Posters 1 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.
  • G Offline
    G Offline
    Gokulan Venattil
    wrote on last edited by
    #1

    Hi all, Is there a way to disable a treenode ?, by 'disable' i mean mean that the node a should not be able to perform any kind of operation on the tree node. Thanks in advance, Gokul.

    A L 2 Replies Last reply
    0
    • G Gokulan Venattil

      Hi all, Is there a way to disable a treenode ?, by 'disable' i mean mean that the node a should not be able to perform any kind of operation on the tree node. Thanks in advance, Gokul.

      A Offline
      A Offline
      Ashok Dhamija
      wrote on last edited by
      #2

      In the event handler for the "AfterSelect" event of the treeview, you can ensure that for that particular node (which you want to disable), no action is taken by your code, i.e., have an empty handler when that node is selected. This may perhaps solve your problem.

      1 Reply Last reply
      0
      • G Gokulan Venattil

        Hi all, Is there a way to disable a treenode ?, by 'disable' i mean mean that the node a should not be able to perform any kind of operation on the tree node. Thanks in advance, Gokul.

        L Offline
        L Offline
        Luis Alonso Ramos
        wrote on last edited by
        #3

        This[^] event will allow you to cancel the selection of a node before it is selected. -- LuisR


        Luis Alonso Ramos Intelectix - Chihuahua, Mexico Not much here: My CP Blog!

        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