Hi,
we are using Syncfusion Grid quite successfully but know we found an ugly bug that decreases the user experience. We have a grid containing some column with a custom CellItemTemplate (not containing a textbox). When clicking on the corner between header and first cell (see red marked area on attached image). I paste the stack trace below this post. Is this an error in our application or is this a known bug on your side?
Thanks for your help,
Matthias
System.InvalidCastException: Unable to cast object of type 'Syncfusion.Windows.Controls.Grid.GridDataHeaderCellControl' to type 'System.Windows.Controls.TextBox'.
at Syncfusion.Windows.Controls.Grid.GridVirtualizingCellRenderer`1.get_CurrentCellUIElement()
at Syncfusion.Windows.Controls.Grid.GridVirtualizingCellRenderer`1.GetControlTextFromEditor()
at Syncfusion.Windows.Controls.Grid.GridCellRendererBase.SetControlText(String value, Boolean enforceApplyControlText)
at Syncfusion.Windows.Controls.Grid.GridCellRendererBase.set_ControlText(String value)
at Syncfusion.Windows.Controls.Grid.GridCellRendererBase.RaiseInitialize(GridActivateCurrentCellOptions options)
at Syncfusion.Windows.Controls.Grid.GridCurrentCell.BeginEditHelper(GridActivateCurrentCellOptions activateOptions)
at Syncfusion.Windows.Controls.Grid.GridCurrentCell.Activate(RowColumnIndex cellRowColumnIndex, GridActivateCurrentCellOptions activateOptions)
at Syncfusion.Windows.Controls.Grid.GridCurrentCell.MoveTo(Int32 rowIndex, Int32 columnIndex, GridActivateCurrentCellOptions activateOptions)
at Syncfusion.Windows.Controls.Grid.GridCellRendererBase.MoveCurrentHelper(FrameworkElement owner, MouseControllerEventArgs e)
at Syncfusion.Windows.Controls.Scroll.MouseControllerDispatcher.MouseDown(MouseButtonEventArgs e, Boolean isPreview)
at Syncfusion.Windows.Controls.Scroll.MouseControllerDispatcher.OnPreviewMouseDown(MouseButtonEventArgs e)
at Syncfusion.Windows.Controls.Scroll.MouseEventTargetCollection.OnPreviewMouseDown(MouseButtonEventArgs e)
at Syncfusion.Windows.Controls.Grid.GridControlBase.OnPreviewMouseDown(MouseButtonEventArgs e)
at System.Windows.UIElement.OnPreviewMouseDownThunk(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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)