Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. ASP.Net Treeview next node

ASP.Net Treeview next node

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netdatabasequestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Milind R Chavan
    wrote on last edited by
    #1

    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

    M 1 Reply Last reply
    0
    • M Milind R Chavan

      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

      M Offline
      M Offline
      meeram395
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups