ASP.Net Treeview next node
-
Hello, I am using Asp.net treeview in my application. and on button next and previous I want to traverse through the treeview nodes back and forth. but the problem is, I can not get the property like : Node.NextNode or Node.PrevNode Again there is no property like Node.Index Will you please help me to resolve this problem? Regards, Milind
-
Hello, I am using Asp.net treeview in my application. and on button next and previous I want to traverse through the treeview nodes back and forth. but the problem is, I can not get the property like : Node.NextNode or Node.PrevNode Again there is no property like Node.Index Will you please help me to resolve this problem? Regards, Milind
There is no property called NextNode or PrevNode or Index for a treenode. You should loop through the node. For eg: TreeNode tn = new TreeNode(); for (int i=0; i<=tn.ChildNodes.Count - 1; i++) { // Write your code here. // Index is present for ChildNodes. } Hope this helps.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.