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. C# Help

C# Help

Scheduled Pinned Locked Moved C#
questioncsharpdatabasehelptutorial
2 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.
  • B Offline
    B Offline
    boiDev
    wrote on last edited by
    #1

    What im trying to do is to link the Treeview to the List view. I have the Treeview liked to the database already an i want it so that when i click on a node it will display in the List View. Does any one know how to do this? If so please Answer my Question

    L 1 Reply Last reply
    0
    • B boiDev

      What im trying to do is to link the Treeview to the List view. I have the Treeview liked to the database already an i want it so that when i click on a node it will display in the List View. Does any one know how to do this? If so please Answer my Question

      L Offline
      L Offline
      Lea Hayes
      wrote on last edited by
      #2

      How have you attached the database to your tree view control? You can add an event handler to the tree view to intercept when the currently selected node has changed. Then, depending on how you've got things set up, you could possibly: #1 - Look up the required data from the database by the ID associated with a tree view node. #2 - Extract the information from the selected tree view node. Don't forget that you can use the 'Tag' property of tree view nodes, so you could associate your data using the Tag property. Then it is very easy to access your information. In your selected node changed event handler you can simply populate your list view from the associated 'Tag' property, or even acquire additional information from your data source using the information provided by the 'Tag' property. I hope that I have understood you correctly, and that this is of some use. :) Best regards, Lea Hayes

      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