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
2430
Getting the following Exception from a WinTree
posted

Here is the detail trace from NetAdvantage 10.3.  I get it when I refresh the tree control (aka reload the UltraDataSource and set some columns as editable).  So when I load the datasource the first time, no errors whatsoever.  When it reloads and when I click on a node it give the following.  Sometimes I can continue and other times I cannot and it crashes.  It is deep in the bowels of Infragistics so can't step into the code to see what is going on.  I have 5 bands where I set some cells to be checkboxes.  The tree mode is Grid.  The datasource is loaded manually.  Has to do with checkboxes in the grid and Node - if I remove the code:

Node.Override.CellClickAction = CellClickAction.EditCell;

It no longer gives the error but I want to edit the checkboxes so it is required.  Some rows have checkboxes but the root node has no checkbox.  I can try to build a sample program if need be to look into this error.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** 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.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)

Parents Reply Children
No Data