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!>
Thanks for joining our community and helping improve Syncfusion products!
Just put the sfSpreadSheet on the MainWindow.xaml
The values were entered after scrolling through about 150 lines quickly.
The following conditions appear to be responsible.
1.Run the program in full screen. (resolution 1980x1080) Lots of cells are displayed.
2. Using low power PC or Very busy PC.
3. Quickly operate.
It is more pronounced on slower PCs, but can also occur on modern PCs with Windows 11, NET 6.
Is error handling not implemented when an operation event occurs when the ViewModel is not yet ready?
Cursor key movement and stylus operation cannot be used to move to cells that have not yet been prepared, but the mouse wheel can be used to move steeply.
Blow as Assertion error message.
System.ArgumentOutOfRangeException occurred
HResult=0x80131502
Message=140 out of range 0 to 102
Source=
StackTrace:
at Syncfusion.UI.Xaml.Grid.ScrollAxis.DistanceRangeCounterCollection.CheckRange(String paramName, Int32 from, Int32 to, Int32 actualValue)
at Syncfusion.UI.Xaml.Grid.ScrollAxis.DistanceRangeCounterCollection._GetCumulatedDistanceAt(Int32 index)
at Syncfusion.UI.Xaml.Grid.ScrollAxis.DistanceRangeCounterCollection.GetCumulatedDistanceAt(Int32 index)
at Syncfusion.UI.Xaml.Grid.ScrollAxis.PixelScrollAxis.ScrollInView(Int32 lineIndex, Double lineSize)
at Syncfusion.UI.Xaml.CellGrid.GridCurrentCell.ScrollInView(RowColumnIndex rowColumnIndex)
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.HandleKeyNavigation(KeyEventArgs args)
at Syncfusion.UI.Xaml.CellGrid.SelectionController.ProcessKeyNavigation(KeyEventArgs args)
at Syncfusion.UI.Xaml.CellGrid.SelectionController.HandleKeyDown(KeyEventArgs args)
at Syncfusion.UI.Xaml.CellGrid.SfCellGrid.OnPreviewKeyDown(KeyEventArgs e)
at Syncfusion.UI.Xaml.Spreadsheet.SpreadsheetGrid.OnPreviewKeyDown(KeyEventArgs e)
at System.Windows.UIElement.OnPreviewKeyDownThunk(Object sender, KeyEventArgs e)
at System.Windows.Input.KeyEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
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.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
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)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(MSG& msg, Boolean& handled)
at System.Windows.Interop.HwndSource.WeakEventPreprocessMessage.OnPreprocessMessage(MSG& msg, Boolean& handled)
at System.Windows.Interop.ThreadMessageEventHandler.Invoke(MSG& msg, Boolean& handled)
at System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at sfSpreadSheetTest.App.Main()