R
rhaazy
Using VS2003 C#
I have a treeview control that navigates through a database in non
heiarchal fashion. I start with the root node, which is just going to
be the name of the database, so it will always just be that one root
node. After that is expanded I will get a list of Computer Names from
a particular table. WHen I expand one of those nodes I get a list of
Categories pertaining to scan results. If I click on a category I get
a list of Attribute Names. Finally when I click on an Attribute Name I
get its corresponding value. All of these events are very unique. I
currently have a form with a button for each of them, so everytime I
click on something I have to click the right button to expand or get a
value. I would like to be able to use just the double click method and
be able to expand the nodes based on how far down the tree I am. I
need something like this
if (Treeview.Nodes[x])
some crap
if (Treeview.Nodes[x].Nodes[x])
some crap
where Nodes[x] would be index of what level of the tree is currently
being worked with.
Any help would be appreciated thanks.
I have a treeview control that navigates through a database in non
heiarchal fashion. I start with the root node, which is just going to
be the name of the database, so it will always just be that one root
node. After that is expanded I will get a list of Computer Names from
a particular table. WHen I expand one of those nodes I get a list of
Categories pertaining to scan results. If I click on a category I get
a list of Attribute Names. Finally when I click on an Attribute Name I
get its corresponding value. All of these events are very unique. I
currently have a form with a button for each of them, so everytime I
click on something I have to click the right button to expand or get a
value. I would like to be able to use just the double click method and
be able to expand the nodes based on how far down the tree I am. I
need something like this
if (Treeview.Nodes[x])
some crap
if (Treeview.Nodes[x].Nodes[x])
some crap
where Nodes[x] would be index of what level of the tree is currently
being worked with.
Any help would be appreciated thanks.