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
35
NullReferenceException in UltraWinGrid
posted

 When I add a new row to a data bound wingrid, move to the next row and then move back, I get the following unhandled exception.

This is coming from the Infragistics control and I can't determine why? Any suggestions on how to isolate the problem?

System.NullReferenceException: object reference not set to an instance of an object.
at Infragistics.Win.ValueListltemMetrics.DirtyCachedValueListltemSize(valueListitem item)
at Infragistics.Win.valueListltemMetrics.OnValueListltemsCollectionContentsChanged(Object sender, valueList changedEventArgs e)
at Infragistics.Win.valueList.FireListChanged(valueListchangedEventArgs args)
at Infragistics.Win.BindableValueList.OnBindingL.stChanged(Object sender, ListChangedEventArgs e)
at System.componentModel.ListChangedEventHandlerInvoke(Object sender, ListChangedEventArgs e)
at System.windows.Forms.BindingSource.OnListchanged(listChangedEventArgs e)
at System.windows.Forms.BindingSource.InnerList_ListChanged(object sender, ListChangedEventArgs e)
at System.Data.Dataview.Onlstchanged(l.istChangedEventArgs e) at System.data.DataView.FinishAddNew(Boolean success)
at System.Data.DataRowview.CancelEdit()
at Infragistics.Win.UltrawinGrid.UltraGridRow.CancelEdit0
at Infragistics.Win.UltrawinGrid.UltraGrid.onActiveRowcleared(Boolean update)
at Infragistics.win.UltrawinGrid.UltraGridBase.SetActiveRow(UltraGridRow row, Boolean scrollinto view)
at Infragistics.Win.UltrawinGrid.UltraGridBase.set_ActiveRow(UltraGridRow value)
at Infragistics.win.UltrawinGrid.UltraGridRow.Activate0
at Infragistics.win.UltrawinGrid.UttraGridRow.SetFocusAndActivate(Boolean byMouse, Boolean enterfditMode, Boolean byTabKey)
at tnfragistics.win.Ultrawin6rid.UltraGridRow.SetFocusAndActivateo at
Infragistics.win.UltrawinGrid.UltraGridJnfragtstics.WinJSelectionManag er.Activateltem(lSelectableltem item)
at lnfragistics.win.SelectionStrategyExtended.OnMouseDown(ISelectablelt em item MouseMessagelnfo& msginfo, Boolean forceDrag)
at Infragistics.win.SelectionStrategyExtended.OnMouseDown(ISelectablelt em item, MouseMessagelnfo& msginfo)
at Infragistics.win.SelectionStrategyExtended.OnMouseMessage(ISelectabl eltem item, MouseMessagelnfo& msginfo)
at Infragistics.win.C ontrolUiElementBase.P rocessMouseDownHelper(Obje ct sender, MouseEventArgs e)
at Infragistics.Win.ControlulElementBase.ProcessMouseDown(object sender, MouseEventArgs e)
at lnfragisticswin.Utihties.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)
at Infragistics.win.UltracontrolBase.OnMouseDown(MouseEventArgs e)
at System.windows.Forms.control.WmMouseDown(Message& m, MouseButtons buttons 1nt32 clicks)
at System.windows.Forms.control.WndProc(Message& m)
at System.windows.Forms.Control.Control Nativewindow.OnMessage(Me ssage&m)
at System.windows.Forms.controiControlNativeWindow.WndProc(Message&m)
at System.windows.Forms.Nativewindow.Callback(IntPtr hwnd, 1nt32 msg, !ntPtr wparam, IntPtr Iparam)

Parents Reply Children
No Data