I am using an ultrawintree control displaying data in the form of grid i.e. ViewStyle is grid. Now I right click on the header and then left click on any of the cell, it throws an application error. The call stack is as follows:
System.NullReferenceException: Object reference not set to an instance of an object. at Infragistics.Win.UltraWinTree.UltraTree.UltraTreeGridBagLayoutDragManager.ColumnRepositionDragEnd(Point clientPoint) at Infragistics.Win.UltraWinTree.UltraTree.Infragistics.Win.ISelectionManager.OnDragEnd(Boolean cancelled) at Infragistics.Win.SelectionStrategyNone.OnMouseMessage(ISelectableItem item, MouseMessageInfo& msginfo) at Infragistics.Win.ControlUIElementBase.ProcessMouseUpHelper(Object sender, MouseEventArgs e) at Infragistics.Win.ControlUIElementBase.ProcessMouseUp(Object sender, MouseEventArgs e) at System.Windows.Forms.MouseEventHandler.Invoke(Object sender, MouseEventArgs e) at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm)
Please Help!!!!!!
Hi,
I ran into this error. Could you please let me know if you got a chance to log an incident with Developer Support? Was there a fix available? OR Do you have any thoughts on a possible work around?
Appreciate your help!
Meanwhile, I'm trying to duplicate the error on a small code snippet.
-Kiran
Hello,
I have logged this as a development issue. I will make another post when it's resolved.
Any suggestions on a possible workaround for now?
The error occurs only when we right click on a column header that can be sorted and then left click on any column cell. Is there a different way by which we can set-up sortable columns apart from marking the required UltraTreeNodeColumn.AllowSorting to true, please guide?
Thanks,Kiran
Hi Kiran,
I don't see any good workaround here. Since the exception appears to be related to dragging the column, I tried turning off AllowColMoving, but it didn't help.
You could turn off sorting and then handle the MouseDown and toggle the sorted state of the column yourself. I'm not sure it's worth the effort, though.
Hi Mike,
We needed the column sort functionality. So, just like you describe; I've turned-off the default sorting and handled the column sorting myself; in the MouseDown event.Additionally, I've added image (arrow) to the column headers that we sort, to indicate the sort direction.
Has this issue been resolved in a new version?