Jason, thanks for answering me, but , no...that isn't...i need some like
this (the data for each new node showed in the tree must be loaded from the
database because the full tree is very very big and slow to construct):
| January | February | March
--------------|----------|-----------|-----------
- Root
+ Node1 | $500 | $623 | $1023
- Node 2 | $560 | $123 | $623
+Node3 | $100 | $223 | $3113
i try to link the tree view with a gridview but it appears to be
impossible...because when the tree node is collapsed the row in the grid
doesn't dissapear, and I think that if the node of the tree its by self a
table it can be usable..
Thanks
<ja***@razack.net> escribió en el mensaje
news:11**********************@i40g2000cwc.googlegr oups.com...
If I understand, you want the treeview nodes to come from a table at
runtime?
foreach (theDataSet.dataRow curRow in theDataSet.theTable)
{
treeView1.Nodes.Add(curRow.ColumnValue, curType.Description);
}
You would simple make it recursive to build out the tree structure
based on child rows.