Home Forums WPF controls Xceed DataGrid for WPF Exception thrown when the data type cannot be handled.

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

    I got the following exception when DefaultCellEditorSelector cannot handle the cell. Is it possible for you to change the code to use .TryFindResource instead since I hooked up to Dispatcher.UnhandledException and got false alarm for this exception. Plus it should help improve the performance a bit.

    WindowsBase.dll!System.Windows.Threading.Dispatcher.CatchException(System.Exception e) + 0x41 bytes
    WindowsBase.dll!System.Windows.Threading.Dispatcher.CatchExceptionStatic(object source, System.Exception e) + 0x3d bytes
    WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.CatchException(object source, System.Exception e, System.Delegate catchHandler) + 0x69 bytes
    WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source, System.Delegate callback, object args, bool isSingleParameter, System.Delegate catchHandler) + 0x9c bytes
    WindowsBase.dll!System.Windows.Threading.Dispatcher.WrappedInvoke(System.Delegate callback, object args, bool isSingleParameter, System.Delegate catchHandler) + 0x42 bytes
    PresentationFramework.dll!MS.Internal.Helper.FindResourceHelper.TryCatchWhen() + 0x6b bytes
    PresentationFramework.dll!System.Windows.FrameworkElement.FindResource(object resourceKey) + 0x4b bytes
    Xceed.Wpf.DataGrid.dll!Xceed.Wpf.DataGrid.DefaultCellEditorSelector.SelectCellEditor(System.Type dataType = {Name = “IChild” FullName = “Lehman.Fia.CreditScope.Wpf.Model.IChild”}) + 0x86 bytes
    Xceed.Wpf.DataGrid.dll!Xceed.Wpf.DataGrid.ItemsSourceHelper.GenerateColumnsFromItemsSource(Xceed.Wpf.DataGrid.ColumnCollection columns = Count = 13, System.Collections.Generic.IDictionary<System.Type,Xceed.Wpf.DataGrid.CellEditor> defaultCellEditors = Count = 0, System.Collections.IEnumerable itemsSource = Count = 10) + 0x24e bytes
    Xceed.Wpf.DataGrid.dll!Xceed.Wpf.DataGrid.DataGridControl.GenerateColumnsFromItemsSource(System.Collections.IEnumerable itemsSource = Count = 10) + 0x67 bytes
    Xceed.Wpf.DataGrid.dll!Xceed.Wpf.DataGrid.DataGridControl.OnItemsSourceChanged(System.Collections.IEnumerable oldValue = null, System.Collections.IEnumerable newValue = Count = 10) + 0x59 bytes
    PresentationFramework.dll!System.Windows.Controls.ItemsControl.OnItemsSourceChanged(System.Windows.DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e) + 0x8f bytes
    WindowsBase.dll!System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs e) + 0x51 bytes
    PresentationFramework.dll!System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs e) + 0x40 bytes
    WindowsBase.dll!System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs args) + 0x2b bytes
    WindowsBase.dll!System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex entryIndex, System.Windows.DependencyProperty dp = {ItemsSource}, System.Windows.PropertyMetadata metadata, System.Windows.EffectiveValueEntry oldEntry, ref System.Windows.EffectiveValueEntry newEntry = {System.Windows.EffectiveValueEntry}, bool coerceWithDeferredReference, System.Windows.OperationType operationType) + 0x53b bytes
    WindowsBase.dll!System.Windows.DependencyObject.InvalidateProperty(System.Windows.DependencyProperty dp) + 0xd2 bytes
    PresentationFramework.dll!System.Windows.Data.BindingExpression.Invalidate(bool isASubPropertyChange) + 0x6c bytes
    PresentationFramework.dll!System.Windows.Data.BindingExpression.TransferValue(object newValue, bool isASubPropertyChange) + 0x1c4 bytes
    PresentationFramework.dll!System.Windows.Data.BindingExpression.Activate(object item) + 0xd3 bytes
    PresentationFramework.dll!System.Windows.Data.BindingExpression.AttachToContext(System.Windows.Data.BindingExpression.AttachAttempt attempt) + 0x2f0 bytes
    PresentationFramework.dll!System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(bool lastChance) + 0x1d bytes
    PresentationFramework.dll!MS.Internal.Data.DataBindEngine.Task.Run(bool lastChance = false) + 0x4f bytes
    PresentationFramework.dll!MS.Internal.Data.DataBindEngine.Run(object arg) + 0xb4 bytes
    PresentationFramework.dll!MS.Internal.Data.DataBindEngine.OnLayoutUpdated(object sender, System.EventArgs e) + 0x1d bytes
    PresentationCore.dll!System.Windows.ContextLayoutManager.fireLayoutUpdateEvent() + 0xb8 bytes
    PresentationCore.dll!System.Windows.ContextLayoutManager.UpdateLayout() + 0x5eb bytes
    PresentationCore.dll!System.Windows.ContextLayoutManager.UpdateLayoutCallback(object arg) + 0x19 bytes
    PresentationCore.dll!System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork() + 0x10 bytes
    PresentationCore.dll!System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() + 0x77 bytes
    PresentationCore.dll!System.Windows.Media.MediaContext.RenderMessageHandlerCore(object resizedCompositionTarget = null) + 0x78 bytes
    PresentationCore.dll!System.Windows.Media.MediaContext.RenderMessageHandler(object resizedCompositionTarget) + 0x2b bytes
    WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback = {Method = {System.Object RenderMessageHandler(System.Object)}}, object args = null, bool isSingleParameter = true) + 0x4a bytes
    WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source = {System.Windows.Threading.Dispatcher}, System.Delegate callback, object args, bool isSingleParameter, System.Delegate catchHandler = null) + 0x3f bytes
    WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeImpl() + 0x104 bytes
    WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(object state) + 0x28 bytes
    mscorlib.dll!System.Threading.ExecutionContext.runTryCode(object userData) + 0x43 bytes

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

    Xceed Support
    Member
    Post count: 5658

    We have noted your suggestion concerning this exception and will take a look to see what we can do about it…

    Thank you for your feedback.

    Imported from legacy forums. Posted by Marcus [Xceed] (had 279 views)

    Xceed Support
    Member
    Post count: 5658

    Thanks again testn for submitting the bug, this issue has been resolved:

    You can download the <a href=”http://download3.xceedsoft.com/Packages/3.2.7614.12380/XceedComponents.exe”>new package</a> now.

    Imported from legacy forums. Posted by CharlesB (had 195 views)

    User (Old forums)
    Member
    Post count: 23064

    Thanks, Charles! I will test it out now.

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

    User (Old forums)
    Member
    Post count: 23064

    It works great…

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

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