Crash when copy and paste

Index was outside the bounds of the array.
   at Syncfusion.UI.Xaml.Spreadsheet.History.HistoryTransactionCommand..ctor(SfSpreadsheet sfSpreadsheet, IRange[] ranges, GridCurrentCell currentCell)
   at Syncfusion.UI.Xaml.Spreadsheet.History.HistoryManager.CommitTransaction()
   at Syncfusion.UI.Xaml.Spreadsheet.SpreadsheetCurrentCell.EndEdit(Boolean canCommit)
   at Syncfusion.UI.Xaml.CellGrid.GridCurrentCell.ValidateAndEndEdit()
   at Syncfusion.UI.Xaml.CellGrid.GridCurrentCell.MoveCurrentCell(RowColumnIndex rowColIndex, GridColumn gridColumn, Boolean forceMove, ActivationTrigger activationTrigger)
   at Syncfusion.UI.Xaml.CellGrid.GridCurrentCell.ProcessCurrentCell(RowColumnIndex rowcol, GridColumn gridColumn)
   at Syncfusion.UI.Xaml.CellGrid.GridCurrentCell.HandlePointerOperations(MouseEventArgs e, RowColumnIndex rowcolIndex)
   at Syncfusion.UI.Xaml.CellGrid.SelectionController.ProcessPointerSelection(MouseEventArgs e, RowColumnIndex rowcolIndex)
   at Syncfusion.UI.Xaml.CellGrid.SelectionController.OnPointerPressed(MouseButtonEventArgs e, RowColumnIndex rowcolIndex)
   at Syncfusion.UI.Xaml.CellGrid.SelectionController.HandlePointerOperations(GridPointerEventArgs args, RowColumnIndex rowcolIndex)
   at Syncfusion.UI.Xaml.CellGrid.GridColumn.PointerPressed(MouseEventArgs e)
   at Syncfusion.UI.Xaml.Spreadsheet.SpreadsheetColumn.PointerPressed(MouseEventArgs e)
   at Syncfusion.UI.Xaml.CellGrid.GridCell.OnMouseDown(MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   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

GS Gokul S Subramani Syncfusion Team September 6, 2024 06:16 AM UTC

Hi Crosslife,

Based on the provided information and screenshot, you encountered a “Index was outside the bounds of the array Exception”. We have prepared a simple sample and attempted to replicate the issue. However, we were unable to reproduce the problem, and it is working properly on our end. Additionally, we have attached a video for your reference. Please find it in attachments.

Kindly review this sample with your implementation. If we have misunderstood the issue or if our implementation differs from yours, please share the relevant code snippets. If possible, attempt to replicate the issue using our provided sample, or share a sample where the issue has been replicated. This will help us to provide a better solution.


Thank you for your understanding and cooperation.


Best Regards,

Gokul S



Attachment: SimpleSpreadheet_d31f4597.zip

Loader.
Up arrow icon