treeview node text not displaying correctly

Tech-Archive recommends: Fix windows errors by optimizing your registry



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

.



Relevant Pages

  • Re: treeview node text not displaying correctly
    ... I have a simple treeview on my webform. ... populating the treeview with nodes. ... On my leaf nodes i want to have ... All the whitespaces in between have been trimed to One whitespace. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to prevent treeview automatically expand and highlight.
    ... When you are populating the treeview, you can set the expanded state of each ... Set MyNode = MyTreeViewControlName.Nodes.Add ...
    (microsoft.public.access.formscoding)
  • Re: Search Engine CONTROL?
    ... > What I'd like to do is search the files that are populating ... > my treeview for text. ... PDFs and others are probably stored in binary and/or encrypted formats. ... That's a whole bunch more code It may even require that you buy the SDK ...
    (microsoft.public.vb.general.discussion)
  • Re: Enable check box for leaf nodes only
    ... > Is there a way to enable check box for leaf nodes only for the ... > TreeView? ... Analyst Programmer ... GatewayTechnolabs Pvt. ...
    (microsoft.public.dotnet.framework.compactframework)
  • TreeView Carriage Return vbCrlf
    ... I have populated the treeview but would like to display messages in ... The data I am populating is from a memo field and the data ... to the treeview the text is on one line and the 2 squares where I have ...
    (microsoft.public.access.forms)