This is a migrated thread and some comments may be shown as answers.

Assigning a unique ID to each treeview node

1 Answer 115 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
carlg
Top achievements
Rank 1
carlg asked on 12 Aug 2010, 07:58 PM
I want to assign a unique ID to each node of the treeview.  Can I do this using the value property of the TreeViewItem class?

What is the purpose of this field.  I noticed it is declared as a string.  Is there another field I should use instead.

1 Answer, 1 is accepted

Sort by
0
Liam
Top achievements
Rank 1
answered on 23 Aug 2010, 12:29 AM
Yes, that is what value is for. It is a string because whatever you put in there has to be stored in the html, so it must be a string.
Tags
TreeView
Asked by
carlg
Top achievements
Rank 1
Answers by
Liam
Top achievements
Rank 1
Share this question
or