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

Tag is Nothing/null in NodeCheckChanged event

1 Answer 31 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Seth
Top achievements
Rank 1
Seth asked on 23 May 2011, 01:56 PM
I am using the Tag property to store a DataRow for each node.  It seems to work fine except for when I try to retrieve it in the NodeCheckChanged event where it is returned as nothing/null.  If I iterate through the nodes and inspect the tag property, it is set properly. Has this been reported by anyone?  I have a work around to just create a mirrored object to store my information in related by the absolute index of each node, but I would rather not do it that way.

TIA

Seth

1 Answer, 1 is accepted

Sort by
0
Seth
Top achievements
Rank 1
answered on 23 May 2011, 02:02 PM
It must be a property I set.  I deleted the TreeView control and added a new one and the problem went away.
Tags
Treeview
Asked by
Seth
Top achievements
Rank 1
Answers by
Seth
Top achievements
Rank 1
Share this question
or