Last post Mar 26, 2018 02:04 PM by Jvaughn92
Mar 23, 2018 02:26 PM|Jvaughn92|LINK
I am using a TreeView. When I update one of my nodes, I repopulate the TreeView.
I want to Expand the nodes and select the node that I just updated.
I have code that is working for this on one part of my TreeView, and that is not working on the other part with the same code.
Basically, I get a null reference exception when I try to select the node.
When I check the path after getting the exception, I notice that the first part of my path is missing (Ex. My path should be 1/2/3, but it is only showing 2/3). On the internal ValuePath property, it does show the completed expected path.
If I use debug and have a watch for the variable, or look at the variable's ValuePath before continue, the value is correct and the code runs perfect.
Any ideas on this one? Sounds like a bug in the TreeNode class to me?
</div> </div> </div>
Mar 26, 2018 09:58 AM|Eric Du|LINK
According to your description and codes, i hope you could add a breakpoint to check the data and code how to run and check which line caused exception in code behind.
About this error message, please check this tutorial:
About how to use breakpoint, please check this tutorial:
Mar 26, 2018 02:04 PM|Jvaughn92|LINK