Hi All,
I am getting a un-handled exception when selecting one or more row in ultragrid and ctrl+dragging. Problem is unable to handle this issue and unable to find the source.
But after handling the application I got the following stack trace
System.NullReferenceException: Object reference not set to an instance of an object.
at Infragistics.Win.UltraWinGrid.UltraGrid.Infragistics.Win.ISelectionManager.SetInitialSelection(ISelectableItem item)
at Infragistics.Win.SelectionStrategyExtended.OnMouseMove(ISelectableItem item, MouseMessageInfo& msginfo)
at Infragistics.Win.SelectionStrategyExtended.OnMouseMessage(ISelectableItem item, MouseMessageInfo& msginfo)
at Infragistics.Win.ControlUIElementBase.ProcessMouseMoveHelper(Object sender, MouseEventArgs e)
at Infragistics.Win.ControlUIElementBase.ProcessMouseMove(Object sender, MouseEventArgs e)
at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)
at Infragistics.Win.UltraControlBase.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
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)
Can any one help me to fix this issue or is there any service patches available to fix this issue
Currently I am using
Infragistics2.win.ultrawingrid.v8.2
File Version: 8.2.20082.2204.
Kindly help me to find a fix for this issue.
Hello Carl,
Thank you for the clarifications. I can now see what is bothering you. I came to the conclusion that this was an issue which has already been fixed. What you could do is to get the latest service release for v9.2 of our controls which is 9.2.2119. Please test your solution with it and let me know if it resolves your issue.
Boris,
Given my earlier reply on “Fri, Oct 5 2012 11:40 AM”, do you know what is causing the exception?
Thank you.
Carl.
Thank you Boris for your reply.
I made the following changes to your sample application and I see the problem: Get an exception when CTRL drag/drop a row when the drag is initiated in a merged cell.
Here are the changes I made:
Infragistics Version: 9.2.20092.2090
Grid:
this.ultraGrid1.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.RowSelect;
this.ultraGrid1.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;
this.ultraGrid1.DisplayLayout.Override.AllowUpdate = Infragistics.Win.DefaultableBoolean.False;
Target Framework: .NET Framework 4
Note: I don't see the exception when I don’t set the CellClickAction (i.e. use the default). Also, we are using version Infragistics 9.2. What do you think the problem is?
--------------------------------------------
I tried this and it always works fine for me so I attached my sample to this post for you. Please review it and feel free to let me know if I misunderstood you or if you have any other questions.
Hello,
I see the same stack trace with exception for this related scenario:
-The grid is set to MultiSelect (Grid.DisplayLayout.Override.SelectTypeRow = Infragistics.Win.UltraWinGrid.SelectType.Extended;)
-The grid has a column with (MergedCellStyle = MergedCellStyle.Always;)
-The grid contains several rows. The column that is configured as “merged” has merged data values.
If I initiate a CTRL-drag/drop in a cell with merged data, I get the same exception and call stack as above (see below).
Do you have recommendations as to how to resolve?
FYI: I don't see the same exception when the grid selection is set to single select instead of multi select
Thank you,