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. Visual Basic
  4. how to make structure similar TreeView or ListView ?

how to make structure similar TreeView or ListView ?

Scheduled Pinned Locked Moved Visual Basic
tutorialcsharpcomquestion
2 Posts 2 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
    Golden Jing
    wrote on last edited by
    #1

    Dear All, Now I want structure to similar treeView or listview but the format is like that: Company_ID------Company_Name----Address--------xxxx------xxxxx (Note: Filed Name) + 001-----------Com A-----------st154----------xxxx------xxxxx (Note: Record) ------- + contact Person --------|------Name------------Position--------Email (Note: Field Name) --------|------Mr A------------Admin-----------mr.A@yahoo.com (Note: Record) --------|------Mr B------------Finance---------mr.B@yahoo.com --------+ Products --------|------Name---------Kind--------Expired-------xxx-----xxxx --------|------Pro A--------A-----------1/1/2010------xxx-----xx --------|------Pro B--------A-----------1/1/2010------xxx-----xx --------|------Pro C--------B-----------1/1/2010------xxx-----xx + 002-----------Com B-----------st154-----------xxxx------xxxx (Note: Record) --------+ contact Person --------|--------Name--------Position--------Email (Note: Field Name) --------|--------Mr C--------Admin-----------mr.A@yahoo.com (Note: Record) --------|--------Mr D--------Finance--------mr.B@yahoo.com --------+ Products --------|--------Name--------Kind------Expired --------|--------Pro Q--------A -------1/1/2010 --------|--------Pro W--------A --------1/1/2010 --------|--------Pro E--------B --------1/1/2010 Example above is have 3 tables but there relation by Company ID When I click on + the sub (contact person, Product, and ...) it will show. and when i click on + of subs (contact person or product...) it will show their data. I would like to say sorry if my wrote is not clear. What any tool that can make like that ? Can you send me the source code ? Thanks you.

    VB.Net

    M 1 Reply Last reply
    0
    • G Golden Jing

      Dear All, Now I want structure to similar treeView or listview but the format is like that: Company_ID------Company_Name----Address--------xxxx------xxxxx (Note: Filed Name) + 001-----------Com A-----------st154----------xxxx------xxxxx (Note: Record) ------- + contact Person --------|------Name------------Position--------Email (Note: Field Name) --------|------Mr A------------Admin-----------mr.A@yahoo.com (Note: Record) --------|------Mr B------------Finance---------mr.B@yahoo.com --------+ Products --------|------Name---------Kind--------Expired-------xxx-----xxxx --------|------Pro A--------A-----------1/1/2010------xxx-----xx --------|------Pro B--------A-----------1/1/2010------xxx-----xx --------|------Pro C--------B-----------1/1/2010------xxx-----xx + 002-----------Com B-----------st154-----------xxxx------xxxx (Note: Record) --------+ contact Person --------|--------Name--------Position--------Email (Note: Field Name) --------|--------Mr C--------Admin-----------mr.A@yahoo.com (Note: Record) --------|--------Mr D--------Finance--------mr.B@yahoo.com --------+ Products --------|--------Name--------Kind------Expired --------|--------Pro Q--------A -------1/1/2010 --------|--------Pro W--------A --------1/1/2010 --------|--------Pro E--------B --------1/1/2010 Example above is have 3 tables but there relation by Company ID When I click on + the sub (contact person, Product, and ...) it will show. and when i click on + of subs (contact person or product...) it will show their data. I would like to say sorry if my wrote is not clear. What any tool that can make like that ? Can you send me the source code ? Thanks you.

      VB.Net

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      I would have thought a dataGridView would be a better solution than either Tree or Listview. Infragistics has a an OutlookExpress style on their treeview that will allow a treeview with columns. There is an A Much Easier to Use ListView[^] here on CP that does the same and it is free.

      Never underestimate the power of human stupidity RAH

      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