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