treeview node text not displaying correctly
- From: "NJP" <NJPSter@xxxxxxxxx>
- Date: 4 Mar 2007 13:53:07 -0800
Hi Guys,
I have a simple treeview on my webform (C# 2.0). I am dynamically
populating the treeview with nodes. On my leaf nodes i want to have
text seperated by a large amount of blank space like shown below
Name BirthDay Photograph
Parent
|__Child1 20/08/1982 c:\documents
\file111\child1.jpg
|__Child2 19/02/1992 c:\documents
\file111\child2.jpg
however when I populate the treenode using the code below
TreeNode service = new TreeNode(ChildName + " " +
BirthDay + " "+ Photograph,
child.ID.ToString(),"","ChildDetails.aspx?CID=" + child.ID,"");
I get the tree below
Name BirthDay Photograph
Parent
|__Child1 20/08/1982 c:\documents\file111\child1.jpg
|__Child2 19/02/1992 c:\documents\file111\child2.jpg
All the whitespaces in between have been trimed to One whitespace.
How
can I try and make sure that I get the requisite whitespace. I have
tried \t as well but that didnt work either. Your help is much
appreciated.
Thanking You,
NJP
.
- Follow-Ups:
- Re: treeview node text not displaying correctly
- From: Kevin
- Re: treeview node text not displaying correctly
- Prev by Date: Re: ASP.net code to start running a win form issue?
- Next by Date: n-layer approach
- Previous by thread: Re: ASP.net code to start running a win form issue?
- Next by thread: Re: treeview node text not displaying correctly
- Index(es):
Relevant Pages
|