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