Can someone assist with the error below? Trying to add a column summary (SUM) and the grid is throwing an exception that can't be caught and is causing my app to completely crash. Was having the same issue with v 11.2 and I upgraded to 12.2 today... same issue
MethodName: Main Source: Infragistics4.Win.UltraWinGrid.v12.2 TargetSite: PrivateScope, Assembly, HideBySig, SpecialName, RTSpecialName ExceptionMessage: Object reference not set to an instance of an object. StackTrace: at Infragistics.Win.UltraWinGrid.RefSummaryValueCollection.RefSummaryValueCollectionEnumerator..ctor(RefSummaryValueCollection collection) at Infragistics.Win.UltraWinGrid.RefSummaryValueCollection.GetEnumerator() at Infragistics.Win.CalcEngine.UltraCalcEngine.RecalcReferences(IUltraCalcReference reference) at Infragistics.Win.CalcEngine.UltraCalcEngine.ProcessTopologicalEvent(QueueInfo item) at Infragistics.Win.CalcEngine.UltraCalcEngine.CleanTopologicalEventQueue(Int64 ticks) at Infragistics.Win.CalcEngine.UltraCalcEngine.Recalc(Int64 ticks, Boolean isStartOfRecalcOperation) at Infragistics.Win.CalcEngine.UltraCalcEngine.Recalc(Int64 ticks) at Infragistics.Win.UltraWinCalcManager.UltraCalcManager.ReCalcInternal(Int64 ticks) at Infragistics.Win.UltraWinCalcManager.UltraCalcManager.ReCalc(Int64 millis) at Infragistics.Win.UltraWinCalcManager.UltraCalcManager.onTimerTick(Object sender, EventArgs e) at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at FMSClient.Program.Main() in C:\Development\MSMQ\FMSClient\Program.cs:line 29
Ok, as is typically the case... I have figured out the cause of this error... My grid was bound to an ultra data source (which was generated from a typed dataset). When binding the grid, I was binding to an un-typed dataset (all the same columns and properties but just a regular DataSet object). This works fine when there are no summaries, for some reason having summaries causes a fatal error in the grid.... Still seems like bug in UltraWinGrid. Grid behavior does not depend on whether the DataSource object is typed or un-typed. As long as all the datatypes and column keys exist, everything works fine. Not in this case....
Hello Sean,
I tried this and it always works fine for me so I attached my sample to this post for you. Please review it and feel free to let me know if I misunderstood you or if you have any other questions.