Hi!
I am trying to get a root node to have the count of the childrens in its text. i.e. I have a root called Employees, I want it to say Employees (29)
Help is appreciated. Heres what I tried
Code:Private Sub TreeView1_DrawNode(ByVal sender As Object, ByVal e As DrawTreeNodeEventArgs) Handles Inv.DrawNode If e.Node.Parent Is Nothing OrElse e.Node.Parent.Parent Is Nothing Then Inv.Nodes(0).Nodes(0).Text = Inv.Nodes(0).Nodes(0).Text + Inv.Nodes(0).Nodes(0).Nodes.Count End If e.DrawDefault = True End Sub




Reply With Quote