Associating value with a node in a treeview windows forms

  • Thread starter Thread starter Vinki
  • Start date Start date
V

Vinki

hello everyone,

How can I associate a value with a tree node? I have this
TreeNode nodeFirstRecord
nodeFirstRecord = new TreeNode[dr["location"]]
How can I se the value of IndexId to the treeNode in order to retrieve the
value later

nodeFirstRecord.value = dr["indexId"], I want to do something like this

Any help will be greatly apprecaited.
 
hello Jduan,

I tried to use that, but when i was triying to retrieve the value by
TreeView1.SelectedNode.tag property, I got the value null.

Am I doing anything wrong
 
Check you code carefully. Make sure the TreedNode is the same object when you
retrieving it. Post you code here if you still have problem.
 
Back
Top