farhanahmed
12 years agoContributor
Position of the tree items is inter changed..
Hi all
i have a little problem , i want to check tree view items under the root node
----rootnode
|
......item 1
|
......item 2
|
......item 3
|
......item 4
|
......item 5
I am geting the text of these items with treeviewobject.SelectedNode.Nodes.Item(i).Text through a loop and comparing them with the expeceted item in the array.
Problem is that when treeviewobject.SelectedNode.Nodes.Item(i).Text i get the items then item number 3 and item number 4 are interchanged when i get these item text.. item 3 displaying inplace of item 4 and item 4 in place of item 3 .
How can i resolve this problem i want to compare the nodes under the root node with expeced data ???
i have a little problem , i want to check tree view items under the root node
----rootnode
|
......item 1
|
......item 2
|
......item 3
|
......item 4
|
......item 5
I am geting the text of these items with treeviewobject.SelectedNode.Nodes.Item(i).Text through a loop and comparing them with the expeceted item in the array.
Problem is that when treeviewobject.SelectedNode.Nodes.Item(i).Text i get the items then item number 3 and item number 4 are interchanged when i get these item text.. item 3 displaying inplace of item 4 and item 4 in place of item 3 .
How can i resolve this problem i want to compare the nodes under the root node with expeced data ???