Hello,
I modified SfDataGrid, so the datagrid assign new ItemsSource of the datagrid, when it sort rows by clicking on datagrid header.
but i updated nuget packages, now it throws exception on line 31 (see attachment):
ItemsSource = l;
I can fill ItemsSource till I click on the header of the datagrid, then it throws following exception:
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at Syncfusion.Data.CollectionViewAdv.EndDeferInternal()
at Syncfusion.Data.CollectionViewAdv.EndDefer()
at Syncfusion.Data.CollectionViewAdv.DeferHelper.Dispose(Boolean isDisposing)
at Syncfusion.Data.CollectionViewAdv.DeferHelper.Dispose()
at Syncfusion.Data.CollectionViewAdv.Dispose(Boolean isDisposing)
at Syncfusion.UI.Xaml.Grid.GridQueryableCollectionViewWrapper.Dispose(Boolean isDisposing)
at Syncfusion.Data.CollectionViewAdv.Dispose()
at Syncfusion.UI.Xaml.Grid.SfDataGrid.DisposeViewOnItemsSourceChanged()
at Syncfusion.UI.Xaml.Grid.SfDataGrid.OnItemsSourceChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
at Syncfusion.UI.Xaml.Grid.GridPropertyMetadata.OnDependencyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at Syncfusion.UI.Xaml.Grid.GridPropertyMetadata.OnInternalDependencyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at Syncfusion.UI.Xaml.Grid.SfDataGrid.set_ItemsSource(Object value)
at My.Controls.EDataGrid.<fillDataGridAsync>d__19.MoveNext() in D:\Projects\CustomControls\CustomControls\DataGrid\EDataGrid.cs:line 186
I installed this nuget packages: <package id="Syncfusion.Data.WPF46" version="15.1.0.41" targetFramework="net461" />
<package id="Syncfusion.SfGrid.WPF46" version="15.1.0.41" targetFramework="net461" />
<package id="Syncfusion.SfGridCommon.WPF46" version="15.1.0.41" targetFramework="net461" />
<package id="Syncfusion.Shared.WPF46" version="15.1.0.41" targetFramework="net461" />
IDE: Visual studio 2015, 2017
OS: Windows 10 64 bit
Do you know where might be problem?