Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4331480
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:06:55+00:00 2026-05-21T10:06:55+00:00

I have parent-child information in a table with GroupID (TreeID.) From this table I

  • 0

I have parent-child information in a table with GroupID (TreeID.)

Enter image description here

From this table I want to derive something like this:

Enter image description here

The purpose of drawing a tree is for viewing only. The table has thousands of groupID/tree structures.

I am using the .NET platform.

How should I proceed?

create table parent_child (GroupID varchar(100) null,   
                           Level varchar(100) null, 
                           Name varchar(100) null,  
                           ID varchar(100) null,    
                           ParentID varchar(100) null,  
                           Top_Parent varchar(100) null)

 insert into parent_child (GroupID,Level, Name,ID,ParentID,Top_Parent) values 
     ('1234', '4', 'James', '6712', '921', '1005'), 
     ('1234', '3', 'Peter', '11', '206', '1005'),
     ('1234', '3', 'Royden', '14', '206', '1005'), 
     ('1234', '3', 'Lila', '237', '589', '1005'),
     ('1234', '3', 'Julie', '921', '589', '1005'), 
     ('1234', '2', 'Sandy', '206', '1005', '1005'), 
     ('1234', '2', 'Tom', '589', '1005', '1005'), 
     ('1234', '1', 'Sam', '1005', 'NA', '1005')
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T10:06:56+00:00Added an answer on May 21, 2026 at 10:06 am

    The article A Graph Tree Drawing Control for WPF (at The Code Project) explains how to achieve what you have in mind, both in WPF and Silverlight. Kudo’s to the guy who made the code available – it’s well written and very easy to customize.

    Screenshot from The Code Project site:

    Enter image description here

    You will have to write the logic to convert your table data to a compatible data structure.

    I hope the article helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple parent/child tables. Contract is the parent table. Each contract can
I have db table with parent child relationship as: NodeId NodeName ParentId ------------------------------ 1
I have parent/child relationship set up via Node Reference. A Child record can have
When you have parent-child tables and you wish to use a DetailsView to edit
I use Entity Framework 4 and I have parent - child relation with Cascade
I have a Parent/Child object/mapping as follows: class Parent { int Id; string name;
Using parent child relationship where a parent can have children while each child has
I have a simple parent-child situation where the parent can have multiple children. The
I have a existing parent-child relationship I am trying to map in Fluent Nhibernate:
I have a parent and child class that both need to implement IDisposable .

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.