Since updating from 3.6 to 3.7.10418.12160 I keep getting ArgumentOutOfRangeException(s) when using xceed datagrids. Code always worked since version 3.2, until now.
Error detail :
System.ArgumentOutOfRangeException :The specified start position is outside the range of the Generator content.
Xceed.Wpf.DataGrid.dll!Xceed.Wpf.DataGrid.CustomItemContainerGenerator.StartGenerator(System.Windows.Controls.Primitives.GeneratorPosition startPos = {GeneratorPosition (-1,2)}, System.Windows.Controls.Primitives.GeneratorDirection direction = Backward) + 0xf8 bytes
Xceed.Wpf.DataGrid.dll!Xceed.Wpf.DataGrid.CustomItemContainerGenerator.CustomItemContainerGeneratorDisposableDisposer.CustomItemContainerGeneratorDisposableDisposer(Xceed.Wpf.DataGrid.CustomItemContainerGenerator generator = {Xceed.Wpf.DataGrid.CustomItemContainerGenerator}, System.Windows.Controls.Primitives.GeneratorPosition startGenPos = {GeneratorPosition (-1,2)}, System.Windows.Controls.Primitives.GeneratorDirection direction = Backward) + 0x8a bytes
Xceed.Wpf.DataGrid.dll!Xceed.Wpf.DataGrid.CustomItemContainerGenerator.System.Windows.Controls.Primitives.IItemContainerGenerator.StartAt(System.Windows.Controls.Primitives.GeneratorPosition position = {GeneratorPosition (-1,2)}, System.Windows.Controls.Primitives.GeneratorDirection direction = Backward, bool allowStartAtRealizedItem = true) + 0x10b bytes
Xceed.Wpf.DataGrid.dll!Xceed.Wpf.DataGrid.Views.TableViewItemsHost.GenerateContainers(Xceed.Wpf.DataGrid.ICustomItemContainerGenerator generator = {Xceed.Wpf.DataGrid.CustomItemContainerGenerator}, double pageHeight = 272.04, Xceed.Wpf.DataGrid.Views.LayoutedContainerInfoList layoutedContainersToRecycle = Count = 0, bool measureInvalidated = true, ref Xceed.Wpf.DataGrid.Views.TableViewItemsHost.PageIndexes pageIndexes = {Xceed.Wpf.DataGrid.Views.TableViewItemsHost.PageIndexes}, out double containersHeight = 0.0) + 0x137 bytes
Xceed.Wpf.DataGrid.dll!Xceed.Wpf.DataGrid.Views.TableViewItemsHost.GeneratePage(double availableHeight = 272.04, bool measureInvalidated = true, ref Xceed.Wpf.DataGrid.Views.TableViewItemsHost.PageIndexes generatedPage = {Xceed.Wpf.DataGrid.Views.TableViewItemsHost.PageIndexes}, out double containersHeight = 0.0) + 0x162 bytes
Xceed.Wpf.DataGrid.dll!Xceed.Wpf.DataGrid.Views.TableViewItemsHost.GeneratePageAndUpdateIScrollInfoValues(System.Windows.Size availableSize = {1336;272,04}, ref double viewportHeight = 0.0) + 0x38c bytes
Xceed.Wpf.DataGrid.dll!Xceed.Wpf.DataGrid.Views.TableViewItemsHost.MeasureOverride(System.Windows.Size availableSize = {1336;272,04}) + 0xb6 bytes
When : Window + DataGridControl with DataContext => Load, UnLoad window, Load, UnLoad with different DataContext (different Data), 10 to 20 times then exception