473,396 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Display Tree View in different manner

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

Expand|Select|Wrap|Line Numbers
  1.   root
  2.   |
  3.   |___O
  4.   |___O
  5.  
I have requirement to display it like..
Expand|Select|Wrap|Line Numbers
  1.          Root
  2.           |
  3.        ___|____ 
  4.       |        |
  5.       O        O
  6.  
Please help me in doing this.
The attached picture depicts the exact layout of treeview

Regards,
Gyanendar
Attached Images
File Type: jpg ByteQueTreeView.jpg (1.6 KB, 254 views)
Apr 19 '10 #1
5 3401
tlhintoq
3,525 Expert 2GB
*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.
Apr 19 '10 #2
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
Apr 19 '10 #3
tlhintoq
3,525 Expert 2GB
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:
http://www.codeproject.com/KB/cs/TreeGenerator.aspx
http://www.filebuzz.com/fileinfo/541...Component.html
Apr 19 '10 #4
GaryTexmo
1,501 Expert 1GB
If you were really ambitious, you could try creating your own by using a custom control and potentially your own paint methods.
Apr 19 '10 #5
tlhintoq
3,525 Expert 2GB
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
Apr 19 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Piet | last post by:
Hi there, I have managed to write a small java program that display an xml file in a JTree. This was achieved by defining a suitable tree model. THe program works...somehow. The nodes (elements...
1
by: Jesper DK | last post by:
Hi, I have docked a tree view to the left on a form. When I start to populate this tree view with nodes, a horizontal scroll box appears in the bottom of the tree view even though thee tree...
1
by: Chris | last post by:
Hi everyone, I am trying to build a treeview dynamically with codes rather than with xml files that I have used in the past. I seem to be having a problem with the tree's display when it is...
10
by: dwok | last post by:
Does anyone know of a good article that discusses creating a "Tree View" control in ASP.NET? Or perhaps a Tree View Control that comes with source code? I have come across a lot of tree controls...
7
by: Andrew Robinson | last post by:
I have a treeview control that I use as a menu & navigation control within a master page. The nodes for this control are loaded from a database which contains the text and url of each like and the...
1
by: Bobby | last post by:
Hello Tom and all, I am also doing almost similar kind of task. In my tree View, I am using 2 tree view from different access table which are almost similar. I want to drag and drop childs from...
1
by: perspolis | last post by:
Hi all I'm looking for a Combobox that displays tree. Does anyone has a source code for that??? thanks in advance
8
by: csharpula csharp | last post by:
Hello friends, I would like to know what is the best way to store a tree structure in c#? Are there any good implementation examples for seing how to do it? Thank u! *** Sent via...
8
by: BigZero | last post by:
Hello ppl, i have system date that is all the software installed on machine like Ms office ,other software what ever installed in the system it stored in Ms access database. when i query to DB it...
1
by: =?Utf-8?B?UHJhZGVlcCBFYXJsYQ==?= | last post by:
Hi I am having one windows application on my local machine and I want to display the folders(shared folders) of remote machine in tree view control of my win application. I haved added me as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.