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
I tried this out, but I am not able to reproduce the error. It works fine for me. If you can reproduce this, you should create a small sample project that demonstrates the error and Submit an incident to Infragistics Developer Support so they can check it out and get it corrected.
thanks for your response!
To reproduce the error you also need a addrow at the top of the grid.
I don't recall if this was ever reproducible or ever reported to Infragistics Developer Support. But that's not really surprising since it was posted almost 2 years ago.
If you are having a problem like this, I recommend that you try to post a small sample project demonstrating the exception and we can check it out.
Or, get the latest service release and see if it helps:
How to get the latest service release - Infragistics Community
Did anyone ever find the cause for this error? I'm getting it now...
I have the same problem with the same stack trace, when I try to open the card view crash, what could be the problem? with data, configuration or parameter could cause that? We're using the v8.3 and we are not using any kind of multithreading. The problem is not randomly and happens always that we use a specific field from our data as sort expression.
I know that we have to research this problem too, but some guideance would be great.
Cheers.