public class Class1{ public int Price { get; set; } public int Qty { get; set; }}
Here is the stack trace I receive.
NullReferenceException: Object reference not set to an instance of an object.] Infragistics.WebUI.UltraWebGrid.UltraCalc.RefCellCollectionEnumerator.MoveNext() +44 Infragistics.WebUI.CalcEngine.RangeCalcInfo.EvaluateNextRow() +63 Infragistics.WebUI.CalcEngine.UltraCalcEngine.Evaluate(Int64 ticks) +181 Infragistics.WebUI.CalcEngine.UltraCalcEngine.Recalc(Int64 ticks) +215 Infragistics.WebUI.UltraWebCalcManager.UltraWebCalcManager.ReCalcInternal(Int64 ticks, Boolean ignoreSuspend) +197 Infragistics.WebUI.UltraWebCalcManager.UltraWebCalcManager.ReCalc(Int64 millis) +382 Infragistics.WebUI.UltraWebCalcManager.UltraWebCalcManager.ReCalc(Boolean ignoreSuspend) +33 Infragistics.WebUI.UltraWebCalcManager.UltraWebCalcManager.ReCalc() +33 Infragistics.WebUI.UltraWebCalcManager.UltraWebCalcManager.ReCalcSynchronous() +54 Infragistics.WebUI.UltraWebCalcManager.UltraWebCalcManager.VerifyReCalc() +54 Infragistics.WebUI.UltraWebCalcManager.UltraWebCalcManager.DirtyCalc(IUltraCalcReference reference, ValueDirtiedAction action) +98 Infragistics.WebUI.UltraWebCalcManager.UltraWebCalcManager.Infragistics.WebUI.CalcEngine.IUltraCalcManager.AddReference(IUltraCalcReference reference) +104 Infragistics.WebUI.UltraWebGrid.UltraWebGrid.RegisterWithCalcManager() +187 Infragistics.WebUI.UltraWebGrid.UltraGridLayout.ResumeCalcManagerNotifications() +234 Infragistics.WebUI.UltraWebGrid.DBBinding.BindList(IEnumerable datasource) +3461 Infragistics.WebUI.UltraWebGrid.DBBinding.DataBind(Object dataSource, String dataMember) +1926 Infragistics.WebUI.UltraWebGrid.UltraWebGrid.DataBind() +1244 GridTest._Default.createBind() in C:\Users\tlange\Documents\Visual Studio 2008\Projects\GridTest\Default.aspx.cs:47 GridTest._Default.LinkButton_Clicked(Object sender, EventArgs e) in C:\Users\tlange\Documents\Visual Studio 2008\Projects\GridTest\Default.aspx.cs:30 System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +90 System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +76 System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +177 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Does anybody have a fix for this issue?
I'm having a similar problem using v11.1 but the above zip file is missing. Do you have any more information on how you solved this issue?
Hi Trent,
I took your code and used it to make a sample web site. I made changes such that I am using ObjectDataSource and a class that returns a list of your custom business classes. I threw the working sample here:
http://download.infragistics.com/users/TomP/WebGrid_WebCalcManager.zip
My sample does not throw an exception.
Please download it, review the code and see if you can adapt this design to your application. You will have to use the project upgrade utility on this sample because I am using a version of the NetAdvantage assemblies that you may not have. The project upgrade utility will allow you to select the assemblies you have on your PC and it will update the sample's assembly references. Hope this helps.
Tom
trent_lange said: I also posted this in WebCalcManager, but I thought it applied to both groups ...
I also posted this in WebCalcManager, but I thought it applied to both groups ...
You might want to pick one post as "primary" and edit the secondary one to include request to post replys in the primary (with a link). Otherwise you'll end up babysitting two threads. (And I'll end up watching them both to find out what the fix is. ;-)
Just my U$D 0.02; I wish I had a fix for you.