I have a WebHiearchalDataGrid that has a grouping applied to it, when i try to get a row summary using the on screen supplied functions if a null reference exception. i am trying to figure out what could be causing this. I have pasted the Stack Trace below
[NullReferenceException: Object reference not set to an instance of an object.] Infragistics.Web.UI.GridControls.SummaryRow.GetSummaryValue(GridField field, Summary summary, ColumnSummaryInfo colSumInfo, SummaryRowSetting sumRowSetting, Boolean raiseEvnt) +510 Infragistics.Web.UI.GridControls.SummaryRow.BehaviorEvents_PreRender(Object sender) +911 Infragistics.Web.UI.GridControls.PreRenderHandler.Invoke(Object sender) +0 Infragistics.Web.UI.GridControls.GridBehaviorEvents.OnPreRender() +22 Infragistics.Web.UI.GridControls.GridBot.HandlePreRender() +65 Infragistics.Web.UI.GridControls.ContainerGridBot.HandlePreRender() +332 Infragistics.Web.UI.Framework.Data.FlatDataBoundControl.OnPreRender(EventArgs e) +1435 Infragistics.Web.UI.GridControls.WebDataGrid.OnPreRender(EventArgs e) +13 Infragistics.Web.UI.GridControls.ContainerGrid.OnPreRender(EventArgs e) +36 System.Web.UI.Control.PreRenderRecursiveInternal() +103 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
Hi whanes,
What version are you running? Do you have the latest service release? Are you adding a summary in a parent or child? If you could attach a small sample that reproduces this issue, it would be awesome.
regards,David Young
I am running v11.2, I downloaded from you guys about a week ago so I assume it is the latest release.
I am not sure what you mean about Parent or Child, but there is only a single band in the grid, however i do Group it pro grammatically first.
As far as a code sample
It goes like so
// Sample Start
grdResults.DataSource = GetDataSet();
grdResults.DataBind();
grdResults.GroupingSettings.GroupedColumns.Add("OrderNumber");
// Sample End
Then on the grid I click the summary button and select Sum, I get the error stated above.