Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
725
WinGrid crash while refreshing grid using down arrow for navigation
posted

Hi,

I'm using the UltraWinGrid control v.11.1.

We have a UltraWinGrid in a form with pagination that means we load on it 50 of a queue of 1.000 rows for example (it depends of an amount of files in a directory) and when the user arrives to the bottom part of the grid we add the next 50 registers of the queue. The program is working good if you use the Scroll Wheel of the mouse, the cursor, etc. but when you use the down arrow button it displays an unhandled exception provoked by the grid when the refreshing process starts. 

The user navigation selection is selecting all row.

The unhandled error is this one:

************** Exception Text **************

System.NullReferenceException: Object reference not set to an instance of an object.
at Infragistics.Win.UltraWinGrid.UltraGrid.OnActiveRowChange(UltraGridRow newActiveRow, Boolean scrollIntoView)
at Infragistics.Win.UltraWinGrid.UltraGridBase.SetActiveRow(UltraGridRow row, Boolean scrollIntoView)
at Infragistics.Win.UltraWinGrid.UltraGridBase.set_ActiveRow(UltraGridRow value)
at Infragistics.Win.UltraWinGrid.UltraGridRow.Activate()
at Infragistics.Win.UltraWinGrid.UltraGridRow.SetFocusAndActivate(Boolean byMouse, Boolean enterEditMode, Boolean byTabKey)
at Infragistics.Win.UltraWinGrid.UltraGridRow.SetFocusAndActivate()
at Infragistics.Win.UltraWinGrid.UltraGrid.Infragistics.Win.ISelectionManager.ActivateItem(ISelectableItem item)
at Infragistics.Win.SelectionStrategyExtended.ProcessKeyBoardItem(ISelectableItem item, Boolean shift, Boolean control, Boolean forceToggle)
at Infragistics.Win.UltraWinGrid.UltraGridLayout.PerformAction(UltraGridAction actionCode, Boolean shiftKeyDown, Boolean ctlKeyDown)
at Infragistics.Win.UltraWinGrid.UltraGrid.PerformKeyAction(Enum actionCode, Boolean shiftKeyDown, Boolean ctlKeyDown)
at Infragistics.Win.UltraWinGrid.UltraGridUIElement.PerformKeyAction(Enum actionCode, Boolean shiftKeyDown, Boolean ctlKeyDown)
at Infragistics.Win.ControlUIElementBase.ProcessKeyDown(Object sender, KeyEventArgs e)
at Infragistics.Win.ControlUIElementBase.ProcessKeyDown(KeyEventArgs e)
at Infragistics.Win.UltraWinGrid.UltraGridUIElement.ProcessKeyDown(KeyEventArgs e)
at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)
at Infragistics.Win.UltraControlBase.OnKeyDown(KeyEventArgs e)
at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
at System.Windows.Forms.Control.WmKeyChar(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)

Right now updating my version is not possible and I also checked the Service Release for my version but in checklist doesn't display if this problem is fixed.

Thanks for the help.