Hi,
I am getting this error, but I can't why what I did wrong. Does anyone know what this mean? Thanks you.
Message: System.ArgumentNullException: Value cannot be null.Parameter name: containingFormulaRef at Infragistics.Win.UltraWinGrid.FormulaTargetRefBase..ctor(UltraGridLayout layout, FormulaRefBase containingFormulaRef, Object context) at Infragistics.Win.UltraWinGrid.SummaryValue.get_CalcReference() at Infragistics.Win.UltraWinGrid.UltraGridRow.CopyFormulaSummaryValues(RowsCollection source, RowsCollection dest) at Infragistics.Win.UltraWinGrid.UltraGridRow.CopyRowPropertiesFrom(UltraGridRow source, RowPropertyCategories rowProperties) at Infragistics.Win.UltraWinGrid.UltraGrid.CopyPropertiesToPrintRow(UltraGridRow printRow) at Infragistics.Win.UltraWinGrid.UltraGrid.FireInitializeGroupRow(InitializeGroupByRowEventArgs e) at Infragistics.Win.UltraWinGrid.UltraGridGroupByRow.FireInitializeRow() at Infragistics.Win.UltraWinGrid.RowsCollection.CreateGroupByRowsHelper(UltraGridRow[ rows, Int32& startIndex, Boolean rowsAlreadySorted) at Infragistics.Win.UltraWinGrid.RowsCollection.InitGroupByRows() at Infragistics.Win.UltraWinGrid.RowsCollection.SyncRowsHelper(IList boundList) at Infragistics.Win.UltraWinGrid.RowsCollection.SyncRows() at Infragistics.Win.UltraWinGrid.RowsCollection.EnsureNotDirty() at Infragistics.Win.UltraWinGrid.RowsCollection.EnsureFiltersEvaluated() at Infragistics.Win.UltraWinGrid.ScrollCountManagerSparseArray.VerifyAgainstScrollVersion() at Infragistics.Win.UltraWinGrid.RowsCollection.get_ScrollCount() at Infragistics.Win.UltraWinGrid.UltraGridLayout.get_RowScrollRange() at Infragistics.Win.UltraWinGrid.RowScrollRegion.GetMaxScrollPosition(Boolean scrollToFill) at Infragistics.Win.UltraWinGrid.RowScrollRegion.EnsureScrollRegionFilled(Boolean calledFromRegenerateVisibleRows) at Infragistics.Win.UltraWinGrid.RowScrollRegion.RegenerateVisibleRows(Boolean resetScrollInfo) at Infragistics.Win.UltraWinGrid.RowScrollRegion.WillScrollbarBeShown(ScrollbarVisibility assumeColScrollbarsVisible) at Infragistics.Win.UltraWinGrid.ScrollRegionBase.WillScrollbarBeShown() at Infragistics.Win.UltraWinGrid.ViewStyleBase.AddBandHeaders(ColScrollRegion csr, UltraGridBand band) at Infragistics.Win.UltraWinGrid.ViewStyleVertical.RecreateHeaderList(ColScrollRegion csr) at Infragistics.Win.UltraWinGrid.ColScrollRegion.RegenerateVisibleHeaders() at Infragistics.Win.UltraWinGrid.ColScrollRegionsCollection.InitializeMetricsHelper() at Infragistics.Win.UltraWinGrid.ColScrollRegionsCollection.InitializeMetrics() at Infragistics.Win.UltraWinGrid.UltraGridLayout.ApplyLoadedBands() at Infragistics.Win.UltraWinGrid.UltraGrid.Export(IUltraGridExporter exporter) at Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter.Export(UltraGrid grid, Worksheet worksheet, Int32 startRow, Int32 startColumn) at Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter.Export(UltraGrid grid) at Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter.Export(UltraGrid grid, String fileName)
GFN_51 said:I'm using version 2009.2. Has this issue been fixed in a newer release?
It's hard to say without knowing exactly what the issue is and seeing it in action. You could try downloading a trial version of the latest version of NetAdvantage to test it out. Or if you can post a small sample project here that demonstrates the exception, I would be happy to try it out in both versions.
Before you do that, though, try setting the FormulaRowSourceIndex to either RowIndex or ListIndex and see if that helps:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridBand band = layout.Bands[0]; UltraGridOverride ov = layout.Override; ov.FormulaRowIndexSource = FormulaRowIndexSource.RowIndex; }
I'm getting this exception when I place more than one column header into the Group-By area at run time.
As a workaround, the error does not occur if each column header is initially added to the Group-By area as the innermost grouping. After adding a column as the innermost grouping, it can be moved to another position within the Group-By area without error.
I had never encountered this error until I added several Formula summaries to the grid. The grid has always contained several non-Formula summaries, and all summaries display the expected results. The error occurs regardless of whether the columns placed into the Group-By area have a summary.
I'm using version 2009.2. Has this issue been fixed in a newer release?
yesterday I had the same problem. In my case I try to change the grid layout..I have installed the last SR (NetAdvantage_WinForms_20101.2102_SR.exe), but the problem persists. Has anyone found a solution ?
Thanks
Maria
The easiest thing for you to do is to just attach a zip file to your post. Go to the Options tab while posting to attach a file.
If you don't want to post the same on the forums, then you will need to send it in through Developer Support.
I have a sample project that reproduce this exception, where could I send it ?
Sébastien