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.
Hi, I have attached a sample code to replicate this issue. I used version infragistic 11.2. The previous version 2007.3 didn't have this issue. To replicate, run the
continute: to replicate this problem, run the application. expand + sign on one section. then highlight one cell and hold 'Shift' key to highlight other cells in same column. drag the mouse outside of expaned section. The following error occurs. Please help. I got users complains for this issue many times. I cannot track this error in catch block. Application is crashed with UHE. 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.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)
Hi,
I ran your sample and I could not reproduce the exception.
Your steps to reproduce here are a bit confusing. For one thing, your sample isn't set up to select a cell when you click on it. Clicking on a cell puts the cell into edit mode. So to select a cell, I used CTRL+Click. Are you doing it some other way?
Also, I'm not really clear on what you are doing. You mentioned both holding the Shift key and also dragging, but why are you doing both?
Anyway... did you get the latest service release, like I suggested in this thread back in August?
Hi Mike, Attached is the modified sample code. I tried to extract some codes from my application to make this simple example. The infragistic version I used is 11.2.20112.2050. I also attached screenshot of error. To replicate this issue: Run WinGridMergeCells2.exe, expand first + sign, hightlight first cell in Edit column and drag down to cross to boundary of first section (from col1 A to col2 B).I am trying to figure out which service release has the fix for this issue but didn't get it. Our company policy doesn't allow us download service release ourselves and use it. I need to make sure the fix is in which release and make request. Any help to get workaround/fix in this version (11.2.20112.2050.) is appreciated.Thanks.Clara
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.
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