G
Guest
Hi to all,
When i use the treeview and i add nodes to it, i have the problem of the
depth. I try to explain myself.
depending of the number of nodes i add or the place where i add it, i have
to use the treeview following this sentences:
treeview1.Nodes.Add
or
treeview1.Nodes[x].Nodes.Add
or
treeview1.nodes[x].Nodes[y].Nodes.Add().
and so on...
how could programatically add nodes only in one method with one sentence? my
problem is that i dont compose this treeview from a query from database. i
want to generate each node when a event is fired in a class that i have. I
want to subscribe to this event and when the event is fired use only a
sentence.
When i use the treeview and i add nodes to it, i have the problem of the
depth. I try to explain myself.
depending of the number of nodes i add or the place where i add it, i have
to use the treeview following this sentences:
treeview1.Nodes.Add
or
treeview1.Nodes[x].Nodes.Add
or
treeview1.nodes[x].Nodes[y].Nodes.Add().
and so on...
how could programatically add nodes only in one method with one sentence? my
problem is that i dont compose this treeview from a query from database. i
want to generate each node when a event is fired in a class that i have. I
want to subscribe to this event and when the event is fired use only a
sentence.