Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TreeView with Columns?

Status
Not open for further replies.

ggohlke

Programmer
Apr 23, 2003
1
US
Has anyone seen or used a good implementation of a C# TreeView that could have columns in it?

I have seen an old VB6 version that completely overode the graphics of a TreeView and I have seen a ListView that was given very simple TreeView characteristics, but never a nice clean TreeView with Columns component for C#.
 
here's an idea, that may prove interesting. implement this idea in vb6, then port it to c# using the conversion tool in vs.net 2003.
 
If you use a datagrid and assign a parent/child relationship on you data sources, you can create a tree-like structure within the datagrid.

I cannot remember offhand, but I believe you assign the relationship within a DataSet. Then, on your datagrid, create a table style for your parent table and one for the relationship.
The Parent grid will have a little "+" next to each row that will open up the child table for that row.

Maybe someone can be more detailed than I, but it's an idea none-the-less.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top