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. Problem In TreeView Control

Problem In TreeView Control

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpquestionlearning
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.
  • J Offline
    J Offline
    Jeeva Mary Varghese
    wrote on last edited by
    #1

    Hi all, I am creating an application in Visual Studion 2005 (Asp.Net )and the language used is C#.Net.It's a Web Based Application .I put a TreeView Control in one my page.But in TreeView Control ,I need to add one more column means ,Its looks like + First 2 - Second 3 + Third + Fourth + Fifth + Seventh 4 The heirarchical list shows the name of some topics inside a book and the right sided number shows the page number.The page number will be a link.How can I create a TreeStructure like this.Or please tell me an alternate solution for this.. Thanks In advance, Jeeva

    L 1 Reply Last reply
    0
    • J Jeeva Mary Varghese

      Hi all, I am creating an application in Visual Studion 2005 (Asp.Net )and the language used is C#.Net.It's a Web Based Application .I put a TreeView Control in one my page.But in TreeView Control ,I need to add one more column means ,Its looks like + First 2 - Second 3 + Third + Fourth + Fifth + Seventh 4 The heirarchical list shows the name of some topics inside a book and the right sided number shows the page number.The page number will be a link.How can I create a TreeStructure like this.Or please tell me an alternate solution for this.. Thanks In advance, Jeeva

      L Offline
      L Offline
      lavanya thadde
      wrote on last edited by
      #2

      U need to get the Name of the Topics and also the page Numbers in some collection say dataset and then bind to the treeview. Here is the code.. foreach(DataRow dr in ds.Tables[0].Rows) { TreeNode tn = new TreeNode(); tn.Text = dr["Topic_Name"] + " " + dr["PageNumber"]; tn.Value = dr["TopicNo"]; TreeView1.ChildNodes.Add(tn); } Hope this will be Useful. Lavanya Thadde

      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