I have a table that I would like to display in a tree view. The table has
parent/child relationships (there is a primary key, and another field that
points to the parent's primary key). This table is in an SQL Server database
(2005). The table is essentially an organization structure (CEO who has
senior managers, who then have department managers, who have section
managers, etc). How do I get this structure into a tree view?

Thanks.

RE: TreeView by ManishBafna

ManishBafna
Mon May 21 10:48:01 CDT 2007

Hi,
Below link should help you:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=254121&SiteID=1
Hope this helps
--
Thanks and Regards.
Manish Bafna.
MCP and MCTS.



"Gerhard" wrote:

> I have a table that I would like to display in a tree view. The table has
> parent/child relationships (there is a primary key, and another field that
> points to the parent's primary key). This table is in an SQL Server database
> (2005). The table is essentially an organization structure (CEO who has
> senior managers, who then have department managers, who have section
> managers, etc). How do I get this structure into a tree view?
>
> Thanks.

Re: TreeView by Eric

Eric
Tue May 22 05:09:43 CDT 2007

See
http://www.emoreau.com/Entries/Articles/2006/04/The-Treeview-control.aspx

--


HTH

Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc. (http://www.emoreau.com)

"Gerhard" <acsla@community.nospam> wrote in message
news:215FA732-0859-44E7-A441-80629628521B@microsoft.com...
>I have a table that I would like to display in a tree view. The table has
> parent/child relationships (there is a primary key, and another field that
> points to the parent's primary key). This table is in an SQL Server
> database
> (2005). The table is essentially an organization structure (CEO who has
> senior managers, who then have department managers, who have section
> managers, etc). How do I get this structure into a tree view?
>
> Thanks.



RE: TreeView by v-wywang

v-wywang
Tue May 22 23:00:18 CDT 2007

Hi Acsla

You may check the following document. It seems like closed to your
scenario.
http://msdn2.microsoft.com/en-us/library/ms996437.aspx
[Extending the TreeView Control]

Please let me know if you meet any further issue. I'm glad to assist you.
Sincerely,
Wen Yuan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


Re: TreeView by Robbe

Robbe
Thu Jun 14 21:34:02 CDT 2007

http://www.eggheadcafe.com/articles/treeview_databinding.asp

--
Robbe Morris
EggHeadCafe.com
http://www.eggheadcafe.com/articles/adonet_source_code_generator.asp



"Gerhard" <acsla@community.nospam> wrote in message
news:215FA732-0859-44E7-A441-80629628521B@microsoft.com...
>I have a table that I would like to display in a tree view. The table has
> parent/child relationships (there is a primary key, and another field that
> points to the parent's primary key). This table is in an SQL Server
> database
> (2005). The table is essentially an organization structure (CEO who has
> senior managers, who then have department managers, who have section
> managers, etc). How do I get this structure into a tree view?
>
> Thanks.