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