Random crash when delete column from right menu

25 out of range 0 to 24 (Parameter 'index')
   at Syncfusion.UI.Xaml.Grid.ScrollAxis.DistanceRangeCounterCollection.CheckRange(String paramName, Int32 from, Int32 to, Int32 actualValue)
   at Syncfusion.UI.Xaml.Grid.ScrollAxis.DistanceRangeCounterCollection.GetNextVisibleIndex(Int32 index)
   at Syncfusion.UI.Xaml.Spreadsheet.SpreadsheetGrid.ScrollColumns_Changed(Object sender, ScrollChangedEventArgs e)
   at Syncfusion.UI.Xaml.Grid.ScrollAxis.ScrollAxisBase.RaiseChanged(ScrollChangedAction action)
   at Syncfusion.UI.Xaml.Grid.ScrollAxis.ScrollAxisBase.ScrollLinesHost_LinesRemoved(Object sender, LinesRemovedEventArgs e)
   at Syncfusion.UI.Xaml.Grid.ScrollAxis.LineSizeCollection.RemoveLines(Int32 removeAtLine, Int32 count, IEditableLineSizeHost movelines)
   at Syncfusion.UI.Xaml.Grid.ScrollAxis.LineSizeCollection.RemoveLines(Int32 removeAtLine, Int32 count)
   at Syncfusion.UI.Xaml.Spreadsheet.SpreadsheetGridModel.RemoveColumns(Int32 removeAtColumnIndex, Int32 count)
   at Syncfusion.UI.Xaml.Spreadsheet.Commands.DeleteSheetColumnsCommand.OnExecute(Object parameter)
   at Syncfusion.UI.Xaml.Spreadsheet.Commands.CommandBase.Execute(Object parameter)
   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
   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)

1 Reply

MA Manikanda Akash Munisamy Syncfusion Team September 16, 2024 03:37 PM UTC

Hi crosslife,

Based on the information provided, we understand that you are encountering an issue when deleting a column using a right-menu, which results in an exception being thrown. However, we were unable to reproduce the problem on our end when we developed a simple sample to replicate the issue. The SfSpreadsheet displayed correctly without any exceptions.

We have attached the prepared sample for your review. To assist us in investigating this further, could you please provide us with the following additional details:
  1. Video Reference: Please share a video or screenshots demonstrating the issue.
  2. Modified Sample: Kindly modify the attached sample to replicate the issue on your end and share it back with us.

This information will help us better understand the problem and work towards finding a prompt solution. Thank you for your cooperation.

Regards,
Manikanda Akash

Attachment: SfSpreadSheet_Demo_7242975e.zip

Loader.
Up arrow icon