Home Forums WPF controls Xceed DataGrid for WPF Object does not match target type

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #24729 |

    I got this message when I tried to add a new row through InsertionRow. Any idea? It’s pretty urgent as I got stuck now.

    Exception: Object does not match target type at
    mscorlib.dll!System.Reflection.RuntimeMethodInfo.CheckConsistency(object target) + 0x93 bytes
    System.dll!System.ComponentModel.ReflectEventDescriptor.AddEventHandler(object component = {System.Windows.DataTemplate}, System.Delegate value = {System.ComponentModel.PropertyChangedEventHandler}) + 0x181 bytes
    System.dll!System.ComponentModel.ReflectPropertyDescriptor.AddValueChanged(object component = {System.Windows.DataTemplate}, System.EventHandler handler = {System.EventHandler}) + 0x10d bytes
    PresentationFramework.dll!MS.Internal.Data.ValueChangedEventManager.ValueChangedRecord.ValueChangedRecord(MS.Internal.Data.ValueChangedEventManager manager, object source, System.ComponentModel.PropertyDescriptor pd) + 0xb7 bytes
    PresentationFramework.dll!MS.Internal.Data.ValueChangedEventManager.PrivateAddListener(object source, System.Windows.IWeakEventListener listener = {MS.Internal.Data.PropertyPathWorker}, System.ComponentModel.PropertyDescriptor pd = {System.ComponentModel.ReflectPropertyDescriptor}) + 0x9a bytes
    PresentationFramework.dll!MS.Internal.Data.PropertyPathWorker.ReplaceItem(int k = 0, object newO = {System.Windows.DataTemplate}, object parent) + 0x317 bytes
    PresentationFramework.dll!MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(int k = 0, System.ComponentModel.ICollectionView collectionView, object newValue = {NullDataItem}, bool isASubPropertyChange = false) + 0xff bytes
    PresentationFramework.dll!MS.Internal.Data.ClrBindingWorker.AttachDataItem() + 0x64 bytes
    PresentationFramework.dll!System.Windows.Data.BindingExpression.Activate(object item) + 0xa9 bytes
    PresentationFramework.dll!System.Windows.Data.BindingExpression.OnDataContextChanged(System.Windows.DependencyObject contextElement) + 0x54 bytes
    PresentationFramework.dll!System.Windows.Data.BindingExpression.HandlePropertyInvalidation(System.Windows.DependencyObject d = {Xceed.Wpf.DataGrid.InsertionCell: Sample.Quotes}, System.Windows.DependencyPropertyChangedEventArgs args) + 0xf8 bytes
    PresentationFramework.dll!System.Windows.Data.BindingExpression.OnPropertyInvalidation(System.Windows.DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs args) + 0xe8 bytes
    WindowsBase.dll!System.Windows.DependentList.InvalidateDependents(System.Windows.DependencyObject source = {Xceed.Wpf.DataGrid.InsertionCell: Sample.Quotes}, System.Windows.DependencyPropertyChangedEventArgs sourceArgs) + 0x51 bytes
    WindowsBase.dll!System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs args) + 0x153 bytes
    WindowsBase.dll!System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex entryIndex, System.Windows.DependencyProperty dp = {DataContext}, System.Windows.PropertyMetadata metadata, System.Windows.EffectiveValueEntry oldEntry, ref System.Windows.EffectiveValueEntry newEntry = {System.Windows.EffectiveValueEntry}, bool coerceWithDeferredReference, System.Windows.OperationType operationType) + 0x53b bytes
    PresentationFramework.dll!System.Windows.TreeWalkHelper.OnInheritablePropertyChanged(System.Windows.DependencyObject d, System.Windows.InheritablePropertyChangeInfo info) + 0x165 bytes
    PresentationFramework.dll!System.Windows.DescendentsWalker<System.Windows.InheritablePropertyChangeInfo>._VisitNode(System.Windows.DependencyObject d = {Xceed.Wpf.DataGrid.InsertionCell: Sample.Quotes}) + 0x26 bytes
    PresentationFramework.dll!System.Windows.DescendentsWalker<System.Windows.InheritablePropertyChangeInfo>.VisitNode(System.Windows.FrameworkElement fe) + 0x7d bytes
    PresentationFramework.dll!System.Windows.DescendentsWalker<System.Windows.InheritablePropertyChangeInfo>.VisitNode(System.Windows.DependencyObject d) + 0x51 bytes
    PresentationFramework.dll!System.Windows.DescendentsWalker<System.Windows.InheritablePropertyChangeInfo>.WalkLogicalChildren(System.Windows.FrameworkElement feParent = {Xceed.Wpf.DataGrid.Views.FixedCellPanel}, System.Windows.FrameworkContentElement fceParent = null, System.Collections.IEnumerator logicalChildren = {Xceed.Wpf.DataGrid.Views.UICellCollection.CellEnumerator}) + 0x68 bytes
    PresentationFramework.dll!System.Windows.DescendentsWalker<System.Windows.InheritablePropertyChangeInfo>.WalkFrameworkElementLogicalThenVisualChildren(System.Windows.FrameworkElement feParent = {Xceed.Wpf.DataGrid.Views.FixedCellPanel}, bool hasLogicalChildren) + 0x4a bytes
    PresentationFramework.dll!System.Windows.DescendentsWalker<System.Windows.InheritablePropertyChangeInfo>.IterateChildren(System.Windows.DependencyObject d) + 0x72 bytes
    PresentationFramework.dll!System.Windows.DescendentsWalker<System.Windows.InheritablePropertyChangeInfo>._VisitNode(System.Windows.DependencyObject d) + 0x33 bytes
    PresentationFramework.dll!System.Windows.DescendentsWalker<System.Windows.InheritablePropertyChangeInfo>.VisitNode(System.Windows.FrameworkElement fe) + 0x7d bytes
    PresentationFramework.dll!System.Windows.DescendentsWalker<System.Windows.InheritablePropertyChangeInfo>.VisitNode(System.Windows.DependencyObject d) + 0x51 bytes
    PresentationFramework.dll!System.Windows.DescendentsWalker<System.Windows.InheritablePropertyChangeInfo>.WalkLogicalChildren(System.Windows.FrameworkElement feParent = {System.Windows.Controls.Grid}, System.Windows.FrameworkContentElement fceParent = null, System.Collections.IEnumerator logicalChildren = {System.Windows.Controls.Grid.GridChildrenCollectionEnumeratorSimple}) + 0x68 bytes
    PresentationFramework.dll!System.Windows.DescendentsWalker<System.Windows.InheritablePropertyChangeInfo>.WalkFrameworkElementLogicalThenVisualChildren(System.Windows.FrameworkElement feParent = {System.Windows.Controls.Grid}, bool hasLogicalChildren) + 0x4a bytes
    PresentationFramework.dll!System.Windows.DescendentsWalker<System.Windows.InheritablePropertyChangeInfo>.IterateChildren(System.Windows.DependencyObject d) + 0x72 bytes
    PresentationFramework.dll!System.Windows.DescendentsWalker<System.Windows.InheritablePropertyChangeInfo>._VisitNode(System.Windows.DependencyObject d) + 0x33 bytes
    PresentationFramework.dll!System.Windows.DescendentsWalker<System.Windows.InheritablePropertyChangeInfo>.VisitNode(System.Windows.FrameworkElement fe) + 0x7d bytes
    PresentationFramework.dll!System.Windows.DescendentsWalker<System.Windows.InheritablePropertyChangeInfo>.VisitNode(System.Windows.DependencyObject d) + 0x51 bytes
    PresentationFramework.dll!System.Windows.DescendentsWalker<System.Windows.InheritablePropertyChangeInfo>.WalkFrameworkElementLogicalThenVisualChildren(System.Windows.FrameworkElement feParent = {Xceed.Wpf.DataGrid.InsertionRow}, bool hasLogicalChildren) + 0xd3 bytes
    PresentationFramework.dll!System.Windows.DescendentsWalker<System.Windows.InheritablePropertyChangeInfo>.IterateChildren(System.Windows.DependencyObject d) + 0x72 bytes
    PresentationFramework.dll!System.Windows.DescendentsWalker<System.Windows.InheritablePropertyChangeInfo>.StartWalk(System.Windows.DependencyObject startNode, bool skipStartNode) + 0x96 bytes
    PresentationFramework.dll!System.Windows.TreeWalkHelper.InvalidateOnInheritablePropertyChange(System.Windows.Framewor

    Imported from legacy forums. Posted by nat (had 487 views)

    User (Old forums)
    Member
    Post count: 23064

    I think there is another bug with InsertionCell when the Cell is invisible. I will try to narrow it down

    Imported from legacy forums. Posted by nat (had 3329 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.