I want to find a node on a Treeview based on not the value of the node but based on combination of both value and category as the value field is not unique.
I am writing the following code and just want to clarify whether it's correct.
If Not radTree.FindNode(Function(o) o.Value = NodeValue And o.Category = "PORT") Is Nothing Then
node = radTree.FindNode(Function(o) o.Value = NodeValue And o.Category = "PORT")
End If
Thanks
Madhu Rao
I am writing the following code and just want to clarify whether it's correct.
If Not radTree.FindNode(Function(o) o.Value = NodeValue And o.Category = "PORT") Is Nothing Then
node = radTree.FindNode(Function(o) o.Value = NodeValue And o.Category = "PORT")
End If
Thanks
Madhu Rao