Crash when select the left most cell and press ctrl and left.
Specified argument was out of the range of valid values.
at Syncfusion.XlsIO.Implementation.RangeImpl.CheckRange(Int32 row, Int32 column)
at Syncfusion.XlsIO.Implementation.RangeImpl.get_Item(Int32 row, Int32 column)
at Syncfusion.UI.Xaml.Spreadsheet.SpreadsheetGrid.GetCellValue(Int32 rowIndex, Int32 colIndex)
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.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.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)
Manikanda Akash
We have checked the previous cell values when pressing CTRL+LEFT to maintain the same behavior as in Excel. In this case, when we have a current cell in the first row and first column of a spreadsheet, we do not have any previous cells. Therefore, when trying to get the cell values for a previous index, the argument exception occurs. We have now considered this case and changed the code for querying the cell values when we have a current cell in the first row and first column.
Regards,
Malini Selvarasu
- 2 Replies
- 3 Participants
-
CR crosslife
- Jun 20, 2024 08:30 AM UTC
- Jul 16, 2024 01:56 PM UTC