Welcome to the WPF feedback portal. We’re happy you’re here! If you have feedback on how to improve the WPF, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

0
Votes

NullReferenceException is thrown when populating ItemsSource at runtime with DetailsViewDefinition


StackTrace details

at Syncfusion.UI.Xaml.Grid.DetailsViewGridManager.InitializeDetailsViewRow(Int32 rowIndex, RecordEntry record, DetailsViewDataRow detailsViewDataRow, Int32 detailsViewIndex, ViewDefinition detailsView, IEnumerable itemsSource) in D:\Incidents\Source\datagrid-xaml\WPF\SfGrid.WPF\Src\Control\DetailsView\DetailsViewGridManager.cs:line 162
   at Syncfusion.UI.Xaml.Grid.DetailsViewManager.InitializeDetailsViewDataRow(Int32 rowIndex, RecordEntry record, DetailsViewDataRow detailsViewDataRow, Int32 detailsViewIndex, ViewDefinition detailsView, IEnumerable itemsSource) in D:\Incidents\Source\datagrid-xaml\WPF\SfGrid.WPF\Src\Control\DetailsView\DetailsViewManager.cs:line 1138
   at Syncfusion.UI.Xaml.Grid.DetailsViewManager.CreateDetailsViewDataRow(Int32 rowIndex, RecordEntry record, IEnumerable itemsSource) in D:\Incidents\Source\datagrid-xaml\WPF\SfGrid.WPF\Src\Control\DetailsView\DetailsViewManager.cs:line 1019
   at Syncfusion.UI.Xaml.Grid.DetailsViewManager.CreateDetailsViewDataRow(Int32 rowIndex) in D:\Incidents\Source\datagrid-xaml\WPF\SfGrid.WPF\Src\Control\DetailsView\DetailsViewManager.cs:line 284
   at Syncfusion.UI.Xaml.Grid.RowGenerator.CreateDataRow(Int32 rowIndex, VisibleLinesCollection visibleColumns, RowRegion region) in D:\Incidents\Source\datagrid-xaml\WPF\SfGrid.WPF\Src\Control\Generator\RowGenerator.cs:line 512
   at Syncfusion.UI.Xaml.Grid.RowGenerator.EnsureRows(VisibleLinesCollection visibleRows) in D:\Incidents\Source\datagrid-xaml\WPF\SfGrid.WPF\Src\Control\Generator\RowGenerator.cs:line 2316
   at Syncfusion.UI.Xaml.Grid.VisualContainer.EnsureItems(Boolean ensureColumns) in D:\Incidents\Source\datagrid-xaml\WPF\SfGrid.WPF\Src\Control\ScrollablePanel\VisualContainer.cs:line 1427
   at Syncfusion.UI.Xaml.Grid.VisualContainer.MeasureOverride(Size constraint) in D:\Incidents\Source\datagrid-xaml\WPF\SfGrid.WPF\Src\Control\ScrollablePanel\VisualContainer.cs:line 818
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)