We have made zero code changes between win forms 2009.1000 and the hot fix 2009.2012 versions but now on doing this line of code
Parameter name: index at System.Collections.ArrayList.get_Item(Int32 index) at Infragistics.Win.UltraWinTree.NodeClientAreaUIElement.PositionChildElements() at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement,Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements(Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements() at Infragistics.Win.UltraWinTree.UltraTreeUIElement.PositionChildElements() at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement,Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements(Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements() at Infragistics.Win.UltraWinTree.UltraTreeNode.BringIntoViewHelper(Boolean includeChildNodes,Boolean includeHorizontal, Boolean includeVertical, Boolean leftOnly) at Infragistics.Win.UltraWinTree.UltraTreeNode.BringIntoViewHelper(Boolean includeChildNodes, Boolean includeHorizontal) at Infragistics.Win.UltraWinTree.UltraTree.SetActiveNode(UltraTreeNode node, Boolean bringIntoView, Boolean adjustHorizontalPosition) at Infragistics.Win.UltraWinTree.UltraTree.set_ActiveNode(UltraTreeNode value) at Program.Main.ultraTree1_Build(Int32 mode) at Program.Main.Treeview(Int32 type)Thanks :¬)
Forgot to include the call stack:
at System.Collections.ArrayList.get_Item(Int32 index) at Infragistics.Win.UltraWinTree.UltraTreeNode.IsFirstVisibleNodeInIslandHelper(Int32 topNodeVisibleIndex) at Infragistics.Win.UltraWinTree.UltraTreeNode.DisplaysHeaderAreaHelper(Int32 topNodeVisibleIndex) at Infragistics.Win.UltraWinTree.UltraTreeNode.get_DisplaysHeaderArea() at Infragistics.Win.UltraWinTree.NodeClientAreaUIElement.PositionChildElements() at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements(Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements() at Infragistics.Win.UltraWinTree.UltraTreeUIElement.PositionChildElements() at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements(Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements() at Infragistics.Win.UltraWinTree.UltraTreeNode.BringIntoViewHelper(Boolean includeChildNodes, Boolean includeHorizontal, Boolean includeVertical, Boolean leftOnly) at Infragistics.Win.UltraWinTree.UltraTreeNode.BringIntoViewHelper(Boolean includeChildNodes, Boolean includeHorizontal) at Infragistics.Win.UltraWinTree.UltraTree.SetActiveNode(UltraTreeNode node, Boolean bringIntoView, Boolean adjustHorizontalPosition) at Infragistics.Win.UltraWinTree.UltraTree.SetActiveNode(UltraTreeNode node, Boolean bringIntoView) at Infragistics.Win.UltraWinTree.UltraTree.SetActiveNode(UltraTreeNode node) at Infragistics.Win.UltraWinTree.UltraTree.set_ActiveNode(UltraTreeNode value)
Hmm, we are getting the same error too. Same circumstances with no code changes between the orignal release and the hotfix.
It seems to happen when we are setting the ActiveNode to something other than nothing (in our case we have just added a new node).
This only is happening if there exists at least one node in the TreeView before attempting to set the ActiveNode.