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
1440
Error when sort on formula column sometimes
posted

 Hello,

 I am getting this exception sometimes when I sort on a formula column calcuated by the CalcManager.  It looks like this problem is related to the UltraGridLayout.Load(Stream stream, PropertyCategories propertyCategories) method.  It works fine if I don't load any layout to the grid.

 

Regards,

Jason

 

All Events Information: 1 : Timestamp: 5/30/2008 2:19:00 AM
Message: Infragistics.Win.CalcEngine.UltraCalcException: Invalid reference //ultraGrid1/Main/(). Empty element encountered at location 18.
   at Infragistics.Win.CalcEngine.RefParser..ctor(String refName)
   at Infragistics.Win.CalcEngine.RefBase.CreateParsedReference()
   at Infragistics.Win.CalcEngine.RefBase.get_ParsedReference()
   at Infragistics.Win.UltraWinGrid.UltraGridRefBase.get_ParsedReference()
   at Infragistics.Win.UltraWinGrid.UltraGridRefBase.ContainsReferenceHelper(IUltraCalcReference inReference, Boolean isProperSubset)
   at Infragistics.Win.UltraWinGrid.UltraGridRefBase.IsSubsetReference(IUltraCalcReference inReference)
   at Infragistics.Win.CalcEngine.UCRecalcChain.RemoveSubsetReferences(IUltraCalcReference reference)
   at Infragistics.Win.CalcEngine.UltraCalcEngine.ProcessDeleteFormula(IUltraCalcFormula formula, IUltraCalcReference baseReference)
   at Infragistics.Win.CalcEngine.UltraCalcEngine.ProcessTopologicalEvent(QueueInfo item)
   at Infragistics.Win.CalcEngine.UltraCalcEngine.CleanTopologicalEventQueue(Int64 ticks)
   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.Infragistics.Win.CalcEngine.IUltraCalcManager.PerformAction(UltraCalcAction action, Object data)
   at Infragistics.Win.UltraWinGrid.SortedColumnsCollection.ProcessNewSortedColumnsHelper(SortedColumnsCollection newSortedColumns, Boolean fireEvents, Boolean groupBy)
   at Infragistics.Win.UltraWinGrid.SortedColumnsCollection.SetSortedColumn(UltraGridColumn column, SortIndicator sortIndicator, Boolean groupBy, Boolean clearExistingNonGroupByColumns, Boolean fireEvents)
   at Infragistics.Win.UltraWinGrid.UltraGridBand.SetSortedColumn(UltraGridColumn column, SortIndicator sortIndicator, Boolean clearExisting)
   at Infragistics.Win.UltraWinGrid.UltraGridColumn.ClickSortIndicator()
   at Infragistics.Win.UltraWinGrid.HeaderUIElement.EndDragHelper(Boolean cancelled)
   at Infragistics.Win.UltraWinGrid.HeaderUIElement.OnMouseUp(MouseEventArgs e)
   at Infragistics.Win.ControlUIElementBase.ProcessMouseUpHelper(Object sender, MouseEventArgs e)
   at Infragistics.Win.ControlUIElementBase.ProcessMouseUp(Object sender, MouseEventArgs e)
   at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)
   at Infragistics.Win.UltraControlBase.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   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)
Category: General
Priority: -1
EventId: 1
Severity: Information
Title:
Machine: HK2638XP
App Domain: MarketWatch.vshost.exe
ProcessId: 5080
Process Name: C:\Documents and Settings\a456056\a456056_view_portfolio_monitor_1.2_dev\vob_portfolio_monitor\Frontend\bin\Debug\MarketWatch.vshost.exe
Thread Name:
Win32 ThreadId:5180
Extended Properties:
----------------------------------------