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
modified sample code is attached again.
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.