Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
565
Exception when node collapse
posted

Hi,

I'm using UltraTree component from NetAdvantage for Windows Forms 2009.2

I have an UltraTree with the following properties

 

 

 

trvSteps.ViewStyle = Infragistics.Win.UltraWinTree.

ViewStyle.OutlookExpress;

trvSteps.Override.SelectionType =

SelectType.Extended;

The tree is populated with 3 nodes and each nodes has some child nodes. All are populating correctly.

On selecting an item from a list box, the contents of the tree are cleared and loaded with another set of nodes. This also works fine.

After the nodes are populated, ExpandAll() is called to view the nodes of all levels.

 

Problem is that when I directly click on the Collapse indicator, exception occurs. Please help.

************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.Collections.ArrayList.get_Item(Int32 index)
   at Infragistics.Win.UltraWinTree.TreeNodeCellsCollection.GetCell(Int32 index)
   at Infragistics.Win.UltraWinTree.TreeNodeCellsCollection.get_Item(UltraTreeNodeColumn column)
   at Infragistics.Win.UltraWinTree.UltraTree.get_ActiveCell()
   at Infragistics.Win.UltraWinTree.UltraTreeNode.internalExpand(Boolean value, Boolean notify, Boolean updateVisibleNodes)
   at Infragistics.Win.UltraWinTree.UltraTreeNode.internalExpand(Boolean value)
   at Infragistics.Win.UltraWinTree.UltraTreeNode.set_Expanded(Boolean value)
   at Infragistics.Win.UltraWinTree.UltraTreeNode.Toggle()
   at Infragistics.Win.UltraWinTree.ExpansionIndicatorUIElement.Toggle()
   at Infragistics.Win.ExpansionIndicatorUIElement.OnMouseDown(MouseEventArgs e, Boolean adjustableArea, UIElement& captureMouseForElement)
   at Infragistics.Win.ControlUIElementBase.ProcessMouseDownHelper(Object sender, MouseEventArgs e)
   at Infragistics.Win.ControlUIElementBase.ProcessMouseDown(Object sender, MouseEventArgs e)
   at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)
   at Infragistics.Win.UltraControlBase.OnMouseDown(MouseEventArgs e)
   at Infragistics.Win.UltraWinTree.UltraTree.OnMouseDown(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

TIA,

Sheeba Y