Display Tree View in different manner

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gyanendar
    New Member
    • Jun 2007
    • 90

    Display Tree View in different manner

    Hi ,
    I am working on WINFORM C# .
    Normally when we use treeview control, it display data something like

    Code:
      root
      |
      |___O
      |___O
    I have requirement to display it like..
    Code:
             Root
              |
           ___|____ 
          |        |
          O        O
    Please help me in doing this.
    The attached picture depicts the exact layout of treeview

    Regards,
    Gyanendar
    Attached Files
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    *Logicially* they are the same: A root with two nodes. But I see what you mean that *visually* you want it to look like an Organizational Chart.

    You'll have to use another tool. TreeView only does the one style.

    Comment

    • gyanendar
      New Member
      • Jun 2007
      • 90

      #3
      Thanks for the reply.
      yes they are same ..only presentation is different.
      Can u tell me what other tools can be used to implement this requirement.
      Please give some example.
      Regards,
      Gyanendar

      Comment

      • tlhintoq
        Recognized Expert Specialist
        • Mar 2008
        • 3532

        #4
        I'm sure there are a dozen OrgChart type controls out there. You'll just have to Google a bit. Some cost - some don't.

        Google'ing for "C# Org Chart Control" got a lot of hits including:

        FileBuzz is your online download destination for Windows, Macintosh, Linux and PDA Freeware, Shareware and Demos.

        Comment

        • GaryTexmo
          Recognized Expert Top Contributor
          • Jul 2009
          • 1501

          #5
          If you were really ambitious, you could try creating your own by using a custom control and potentially your own paint methods.

          Comment

          • tlhintoq
            Recognized Expert Specialist
            • Mar 2008
            • 3532

            #6
            Events tutorial (including Form to Form which is the same as class to class)
            Tutorial that makes a virtual numeric keyboard.

            I really should do a tutorial on making custom controls meant to be put in the toolbox for regular use

            Comment

            Working...