This is a migrated thread and some comments may be shown as answers.

[Solved] RadGridView crashes - on cell click after 2011 Q2 upgrade

1 Answer 75 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Irina Ziegler
Top achievements
Rank 1
Irina Ziegler asked on 29 Jul 2011, 05:35 AM
in our application 'TCB.DM.Reports.Cell' - is a cell  'TCB.DM.Reports.RowCell'. is row of cells
on mouse click event is confused and trying to assign cell clicked to a row variable. 

Was working fine in 2011 Q1.

Message: System.InvalidCastException: Unable to cast object of type 'TCB.DM.Reports.Cell' to type 'TCB.DM.Reports.RowCell'.
   at Telerik.Windows.Data.FuncExtensions.<>c__DisplayClass1`2.<ToUntypedFunc>b__0(Object item)
   at Telerik.Windows.Data.QueryableCollectionViewGroup.FindLastLevelGroupByItem(Object item)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.GetRowForItem(Object item, Boolean forceGroupExpand)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.OnCurrentCellInfoChanged(GridViewCellInfo currentCell)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.set_CurrentCellInfo(GridViewCellInfo value)
   at Telerik.Windows.Controls.GridView.GridViewCell.UpdateOnIsCurrentChanged(Boolean newValue)
   at Telerik.Windows.Controls.GridView.GridViewCell.IsCurrentChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
   at Telerik.Windows.PropertyMetadata.<>c__DisplayClass1.<Create>b__0(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
   at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Telerik.Windows.Controls.GridView.GridViewCell.set_IsCurrent(Boolean value)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.OnCellMouseDown(GridViewCell cell, MouseButtonEventArgs args)
   at Telerik.Windows.Controls.GridView.GridViewCell.OnMouseLeftButtonDown(MouseButtonEventArgs e)
   at System.Windows.Controls.Control.OnMouseLeftButtonDown(Control ctrl, EventArgs e)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)   

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 29 Jul 2011, 06:39 AM
Hello Irina Ziegler,

In order to provide an appropriate solution, I would need slightly more details. Do you work with the GridViewCell-s and GridViewRow-s ? Do you handle a particular event ?
Generally, any relevant information or code-snippets would be helpful.
 

Best wishes,
Maya
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
GridView
Asked by
Irina Ziegler
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or