Hi,

i'm writing a custom treeview object where each node has a reference to a respective dataset row. I'm creatinga subclass as follows

Class NewNode
Inherits TreeNode
public row as datarow

Public Sub New(r as datarow)
MyBase.new()
row = r
Me.Text = r.item("Text")
End Sub
End Class

now for a example i add a row as follows:

public sub addnode(row as datarow)
treeview1.nodes.add(new newnode())
end sub

Now the question is when i build a treeview object using my new node type is datarow object going to be present there as a reference to a dataset.table.row structure or is it going to be a datarow object i.e. if the row element contains alot of information and the tree is going to be quite big i don't want to keep it all inside of the treeview but i want to be able to have a reference to it.

Regards