We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridCrashes when clicking in the corner between header and first cell

Thread ID:





105726 Nov 16,2012 12:41 PM UTC Dec 19,2012 04:39 AM UTC WPF 4
Tags: GridControl
Matthias Baumann
Asked On November 16, 2012 12:41 PM UTC


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,

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)

Matthias Baumann
Replied On November 16, 2012 12:44 PM UTC

I forgot to attach the image, sorry. here it is :)


Rajasekar G [Syncfusion]
Replied On November 25, 2012 06:05 PM UTC

Hi Matthias,

We updated the solution for this query in the incident #100393.

Please let us know if you need any more details.

Raja sekar.G

Matthias Baumann
Replied On December 12, 2012 03:46 PM UTC


thanks for your help. Unfortunately I don’t have an incident with the given id. Can you please check, if it is correctly assigned to my account? Thanks!



Rajasekar G [Syncfusion]
Replied On December 19, 2012 04:39 AM UTC

Hi Matthias,

Apologies , please ignore the previous erroneous update which have updated with a wrong incident ID. You could be able view the incidents under your account, so could you please create new incident for this query through Direct Trac system and we will provide you the patch for this fix through the incident.


We will wait to hear from and please let us know if you need any assistance on this.


Raja sekar.G


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon