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. TreeView Control - selecting and deselectig node

TreeView Control - selecting and deselectig node

Scheduled Pinned Locked Moved C#
3 Posts 2 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.
  • A Offline
    A Offline
    ankushmn
    wrote on last edited by
    #1

    In TreeView control, If i select parent node which gets bold then i select another parent node which also gets bold. In this case i am able to see which node is selected and which is deselected. I need code for if i selected another parent node then previously selected node gets deselected and gets normal style means not bold. - Parent 1 --- Child Node 1 --- Child Node 2 - Parent 2 --- Child Node 3 --- Child Node 4 e.g. If Parent 1 is selected(bold) by default when form loads and then if i select Parent 2 then Parent 1 gets normal font and Parent 2 gets bold bcoz it is currently selected.

    J A 2 Replies Last reply
    0
    • A ankushmn

      In TreeView control, If i select parent node which gets bold then i select another parent node which also gets bold. In this case i am able to see which node is selected and which is deselected. I need code for if i selected another parent node then previously selected node gets deselected and gets normal style means not bold. - Parent 1 --- Child Node 1 --- Child Node 2 - Parent 2 --- Child Node 3 --- Child Node 4 e.g. If Parent 1 is selected(bold) by default when form loads and then if i select Parent 2 then Parent 1 gets normal font and Parent 2 gets bold bcoz it is currently selected.

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2

      Is your issue the same as this[^]? It just seems I answered this one quite comprehenively last week. Maybe you guys are in the same class at school or something. Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

      1 Reply Last reply
      0
      • A ankushmn

        In TreeView control, If i select parent node which gets bold then i select another parent node which also gets bold. In this case i am able to see which node is selected and which is deselected. I need code for if i selected another parent node then previously selected node gets deselected and gets normal style means not bold. - Parent 1 --- Child Node 1 --- Child Node 2 - Parent 2 --- Child Node 3 --- Child Node 4 e.g. If Parent 1 is selected(bold) by default when form loads and then if i select Parent 2 then Parent 1 gets normal font and Parent 2 gets bold bcoz it is currently selected.

        A Offline
        A Offline
        ankushmn
        wrote on last edited by
        #3

        I tried and i got it. Thanx :laugh:

        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