Mike.Tabaczynski
Joined: 16 Nov 2010 Posts: 2
|
Posted: Tue Nov 16, 2010 8:55 pm Post subject: UpdateRows() crashes if underlying data is deleted |
|
|
UpdateRows() crashes if underlying data
Hi
If the collection given to DataSource has been invalidated and then cleared of all elements, and UpdateRows() is called later when the tree control becomes visible again, I get:
StackTrace " at Infralution.Controls.VirtualTree.Row.Dispose()\r\n at Infralution.Controls.VirtualTree.Row.UpdateChildrenNoReindex(Boolean reloadChildren, Boolean recursive)\r\n at Infralution.Controls.VirtualTree.Row.UpdateChildren(Boolean reloadChildren, Boolean recursive)\r\n at Infralution.Controls.VirtualTree.VirtualTree.UpdateRows(Boolean reloadChildren)\r\n at Infralution.Controls.VirtualTree.VirtualTree.UpdateRows()\r\n...
Since I know the data source is kaput, is there some way to reset the tree control back to a clean slate when it becomes visible? This is after its containing control became invisible via tab selection but not destroyed. The tree control would still have any properties it had when previously visible, but I am happy to start from scratch.
Thanks
MikeT |
|