Hi,
I have a ultrawingrid and I set cardview to true so it appears in cardview. I group by a field and then I scroll down and scroll up.
The grid crashes with the following error :
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************System.NullReferenceException: Object reference not set to an instance of an object. at Infragistics.Win.UltraWinGrid.RowColRegionIntersectionUIElement.CardRowSizingHelper(CardAreaUIElement cardRowElement) at Infragistics.Win.UltraWinGrid.RowColRegionIntersectionUIElement.AddRowHelper(UIElement parentElement, UIElementsCollection oldElements, Rectangle& rcElement, VisibleRow visibleRow, Boolean overlapTopBorder, Boolean offsetElementIfPossible) at Infragistics.Win.UltraWinGrid.RowColRegionIntersectionUIElement.PositionChildElements() at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UltraWinGrid.RowColRegionIntersectionUIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UltraWinGrid.DataAreaUIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UltraWinGrid.UltraGridUIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements(Boolean recursive) at Infragistics.Win.UltraWinGrid.RowsCollection.GetCardAreaElement(RowScrollRegion rsr, ColScrollRegion csr, Boolean scrollIntoView, UltraGridRow row, Boolean exitEditMode, Boolean verifyElements) at Infragistics.Win.UltraWinGrid.RowsCollection.ScrollCardIntoView(UltraGridRow row, RowScrollRegion rsr, ColScrollRegion csr, Boolean exitEditMode) at Infragistics.Win.UltraWinGrid.RowsCollection.ScrollCardIntoView(UltraGridRow row, RowScrollRegion rsr) at Infragistics.Win.UltraWinGrid.RowScrollRegion.ScrollRowIntoViewHelper(UltraGridRow row, Boolean exitEditMode, Boolean dontUpdateGridControl, Boolean maintainClosestScrollPosition, Boolean& selfUsedFlag) at Infragistics.Win.UltraWinGrid.RowScrollRegion.ScrollRowIntoView(UltraGridRow row, Boolean exitEditMode, Boolean dontUpdateGridControl, Boolean maintainClosestScrollPosition) at Infragistics.Win.UltraWinGrid.RowScrollRegion.ScrollRowIntoView(UltraGridRow row) 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)
any ideas?
Thank you
D.E.
Hi D.E.
What version of the controls are you using? Do you have the latest Hot Fix? If not, I recommend getting it.
If that doesn't help, you should create a small sample project demonstrating the error and Submit an incident to Infragistics Developer Support
Hello Mike,
I'm facing the same problem. I'm using the version 8.2 and already installed the latest hotfix. But the problem still appears after the following steps:
1. Open Ultragrid in cardview >> 2. Group by a column >> 3. scroll to the top (there must be enough displayed groups so the scrollbar appears)
After the scrolling to the top the grid throws the exception which addinfo inserted and the grid just shows a big red cross.
What can I do?
Thanks isiraider