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!

1
Vote

Hello,

I have just updated from version 20.4.0.54 to 27.2.5, and I am encountering an issue with the SfDataGrid. The problem occurs when using the grouping feature of the SfDataGrid while sorting is enabled on another column. 

To reproduce the issue, you can use the attached code. Simply perform a grouping action on the Group column, then expand a group in the middle of the list. The exception shown below should be triggered. 

I also noticed that if you set EnableDataVirtualization to false, no exception is thrown, but the rows at the bottom start to disappear.


System.ArgumentOutOfRangeException: Index must be within the bounds of the List. (Parameter 'index')
   at Syncfusion.Data.GroupDisplayElements.InsertRecord(Group baseGroup, RecordEntry record, Int32 index, Boolean isInSourceCollectionChange, Int32& startIndex, List1& changedItems)
   at Syncfusion.Data.CollectionViewAdv.UpdateGroupingModel(Object sender, NotifyCollectionChangedEventArgs e)
   at Syncfusion.Data.CollectionViewAdv.NotifyPropertyChangedHandler(Object sender, PropertyChangedEventArgs e)
   at WpfApp1.ViewModel.NotifyPropertyChanged[T](T& before, T after, String propertyName) in  WpfApp1/WpfApp1/ViewModel.cs:line 58
   at WpfApp1.ViewModel.set_Value(Int32 value) in WpfApp1/WpfApp1/ViewModel.cs:line 44