Hi,I recently upgraded Infragistics from 2007.3 to 2011.2. When user did copy one cell and drag the rest of cells in same column to paste , the new version 11.2 throws exception when the mouse is out of grid. Do we treat the drag event differently in new version? Did anyone has same problem? Thanks.
System.NullReferenceException: Object reference not set to an instance of an object. at Infragistics.Win.UltraWinGrid.UltraGrid.Infragistics.Win.ISelectionManager.ItemNearestPoint(Point point, ISelectableItem lastItem) at Infragistics.Win.SelectionStrategyExtended.OnMouseMove(ISelectableItem item, MouseMessageInfo& msginfo) at Infragistics.Win.SelectionStrategyExtended.OnMouseMessage(ISelectableItem item, MouseMessageInfo& msginfo) at Infragistics.Win.SelectionStrategyBase.VerticalScrollTimer_Tick(Object sender, EventArgs e) at System.Windows.Forms.Timer.OnTick(EventArgs e) at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I think this might be a known bug that is already fixed. Try getting the latest service release and the problem should be corrected:
How to get the latest service release - Infragistics Community
We don't allow to get latest service ourselves due to company's policy. I used 11.2.20112.2050 right now. Do you have any temporary solution? Just adding error handling in some event (cannot figure out which event ) to ignore this error? Thanks.
Hello ,
As I said in the new Infragistics 11.2 you could use multi cell operation to achieve copping of value of one cell to several ones. Using this approach I think that you will avoid this exception. If this doesn’t helps please provide us a small sample where this issue is reproducible and we will be able to investigate this further for you.
I am waiting for your feedback.
Hi Hristo, This is not the issue with multi cells operation. I already set the propriety AllowMultiCellOperations to AllowMultiCellOperation.Copy. The error happened when trying to highlight all cells and mouse is outside of WinGrid. Mark, I am not able to find the new version you mentioned that has the fix for this issue. Can you please help?Thanks.
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components.
I've got same issue. I use infragistics 2012.1.
Steps to reproduse:
1) Create grouping by any columns.
2) Try to drag on cells to grouping panel.
3) Get Exception:
System.NullReferenceException: Object reference not set to an instance of an object.at Infragistics.Win.UltraWinGrid.UltraGrid.Infragistics.Win.ISelectionManager.ItemNearestPoint(Point point, ISelectableItem lastItem)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) (DB.GM.GCT.QTE.UI.Program)
I create project at D:\IGSrc\CLR4.0\WinForms_Master_CLR40.sln and get follow stack-trace:
at Infragistics.Win.UltraWinGrid.UltraGrid.Infragistics.Win.ISelectionManager.ItemNearestPoint(Point point, ISelectableItem lastItem) in D:\IGSrc\CLR4.0\UltraWinGrid\UltraGrid.cs:line 12914 at Infragistics.Win.SelectionStrategyExtended.OnMouseMove(ISelectableItem item, MouseMessageInfo& msginfo) in D:\IGSrc\CLR4.0\Common\Infragistics.Win\SelectionStrategyExtended.cs:line 800 at Infragistics.Win.SelectionStrategyExtended.OnMouseMessage(ISelectableItem item, MouseMessageInfo& msginfo) in D:\IGSrc\CLR4.0\Common\Infragistics.Win\SelectionStrategyExtended.cs:line 132 at Infragistics.Win.ControlUIElementBase.ProcessMouseMoveHelper(Object sender, MouseEventArgs e) in D:\IGSrc\CLR4.0\Common\Infragistics.Win\ControlElement.cs:line 3365 at Infragistics.Win.ControlUIElementBase.ProcessMouseMove(Object sender, MouseEventArgs e) in D:\IGSrc\CLR4.0\Common\Infragistics.Win\ControlElement.cs:line 3259 at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e) in D:\IGSrc\CLR4.0\Common\Infragistics.Win\Utilities.cs:line 4889 at Infragistics.Win.UltraControlBase.OnMouseMove(MouseEventArgs e) in D:\IGSrc\CLR4.0\Common\Infragistics.Win\UltraControlBase.cs:line 3688 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)
Error at this line: cell = nearestRow.Row.Cells[ column ];
nearestRow.Row.Cells is null .
Please ignore my above erequestion about upgrading from 2050 t0 2112. I found out the root cause. It is not upgrading related issue. thanks.
Thanks Mike. I downloaded newsest sevice release 11.2.20112.2112. The unhandled exception is fixed. However, I experienced other issue after upgraded from 11.2.20112.2050 to 11.2.20112.2112. I am not sure if I should open a different thread to discusss. (please let me know if I should open another thread)After I installed service release 2112, one of existing function didn't work. The root cause is the somehow it is still refering 11.2.20112.2050 (System.IO.FileNotFoundException: Could not load file or assembly 'Infragistics2.Win.UltraWinEditors.v11.2, Version=11.2.20112.2050, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' or one of its dependencies. The system cannot find the file specified.File name: 'Infragistics2.Win.UltraWinEditors.v11.2, Version=11.2.20112.2050, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb'). I used 'Upgrade Infragistic version' tool to upgrade the whole project and could not find references in project file for 2050. Why did only clickcellbutton event still look for minor version 2050 and other controls are OK? ThanksClara
Hi Clara,
clarali said:Attached is the modified sample code.
I don't see any modified sample code or any new sample attached here. Your post has only one attachment and it's a zip file which contains a Word document with a single screen shot in it. That doesn't really help.
I have your original sample and I would like to verify for you that the problem doesn't occur, but the steps you provided here to reproduce the exception are pretty vague and some of them are unclear, as I explained in my previous post. So I can't be absolutely sure I am doing it right.
IF you could provide more details steps that explain exactly what you are doing, how you selecting the cells, etc. I could make sure the issue it not happening in the latest service release.
As for which SR the issue is fixed in, it really doesn't matter. There is only one service release available for download - the latest one. So either the issue is fixed or it isn't.
Please ignore all that stuff about the steps and the sample. I got mixed up and I was on the wrong page of the forum post. I downloaded your new sample and tried the steps you described and I still get no exception. So I am as sure as I can be that the issue is fixed in the latest service release.
Hello Boris,To replicate this, run the app, expand col1 A, left click one cell in first row, hold the mouse and dragging down to highlight the second and third cells in same column. It is fine if you stop/release mouse at the last cell in same row. however exception is throwed when the mouse is reaching out of section A. I have attached screenshoot of the error. I just extracted part of code to replicate this issue. Drag/drop logic is not included. This is for copy/paste multiple cells.Thanks.Clara
Hello clarali,
Thank you for the sample project provided. Could you please let me know of the steps to reproduce the issue, I do not see any code for dragging? I will be glad to assist you further.