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
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