TreeView

B

Ben Schumacher

I have a treeview control on my .aspx page. I the .vb codebehind I
dynamically build the treenode objects and append them to the treeview
control like below ... My question is while I'm in the loop, right where
you see ????????????, how can i set a property of the oTreeNodeParent to
make it bold or a different color or somthing. I can't use the
selected=true becuase there might be more than one node that needs this
property set. Any ideas?

For Each oNode As XmlNode In .SelectNodes("DocumentPacket/Folders/Folder")

Dim oTreeNodeParent As New TreeNode

Dim iParentProjectID As Integer = oNode.SelectSingleNode("ID").InnerText

oTreeNodeParent.Text = oNode.SelectSingleNode("Number").InnerText

oTreeNodeParent.Value = iParentProjectID

oTreeNodeParent.NavigateUrl = SiteRoot() & "folders/folder.aspx?proj_id=" &
iParentProjectID

If CBool(CInt(iParentProjectID) = CInt(m_intProjectID)) Then

'???????????????????????????????????????

End If

RelationshipTree.Nodes.Add(oTreeNodeParent)

Next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top