Hi,
We have a tree bound to a hierarchical datasource, when a new item is added to the lowests levels there is no problem, but when a new item is added to the deepest leaf level (generating a new level) we get this NullReferenceException, any idea?
Thanks
Infragistics2.Win.UltraWinTree.v10.3.dll!Infragistics.Win.UltraWinTree.TreeNodesCollection.dataList_ItemAdded(System.ComponentModel.ListChangedEventArgs e = {System.ComponentModel.ListChangedEventArgs}) + 0x16d bytes Infragistics2.Win.UltraWinTree.v10.3.dll!Infragistics.Win.UltraWinTree.TreeNodesCollection.dataList_ListChanged(object sender = Count = 1, System.ComponentModel.ListChangedEventArgs e = {System.ComponentModel.ListChangedEventArgs}) + 0x4f bytes System.dll!System.ComponentModel.BindingList<System.__Canon>.OnListChanged(System.ComponentModel.ListChangedEventArgs e) + 0x17 bytes System.dll!System.ComponentModel.BindingList<System.__Canon>.FireListChanged(System.ComponentModel.ListChangedType type, int index) + 0x35 bytes System.dll!System.ComponentModel.BindingList<System.__Canon>.InsertItem(int index, System.__Canon item) + 0x3f bytes
[.....]
Hello jcmarq,
It is hard for me to determine the source of the problem from what you have posted. So could you please try to attach if possible a small sample project, which reproduces this issue, I will be happy to take a look at it and assist you further on that matter.
Hello Boris,
Thank you for the quick response, I have found a workaround; now I'm adding a "dummy" branch of items with 20 level depth and then hidding the root node for it, and the error is not happening anymore as it seems that the tree has created some kind of information for those deepest levels.
Thank you for your feedback and for sharing this with us. We believe that the other community members could benefit from such threads.
Please feel free to let me know if a question about our toolset comes up on your mind.