Home Forums WPF controls Xceed DataGrid for WPF An attempt was made to change the selection while a selection-change process

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Martin
    Participant
    Post count: 1
    #51180 |

    Dear Xceed Team!

    In our application we often get following exception out of the xceed datagrid:

    “An attempt was made to change the selection while a selection-change process is already in progress.”

    With the following Call Stack:

    System.InvalidOperationException:
    at Xceed.Wpf.DataGrid.SelectionManager.Begin (Xceed.Wpf.DataGrid.v6.7, Version=6.7.19073.21200, Culture=neutral, PublicKeyToken=ba83ff368b7563c6)
    at Xceed.Wpf.DataGrid.SelectionManager.UpdateSelectionAfterSourceCollectionChanged (Xceed.Wpf.DataGrid.v6.7, Version=6.7.19073.21200, Culture=neutral, PublicKeyToken=ba83ff368b7563c6)
    at Xceed.Wpf.DataGrid.DataGridContext.UpdateSelectionAfterSourceCollectionChanged (Xceed.Wpf.DataGrid.v6.7, Version=6.7.19073.21200, Culture=neutral, PublicKeyToken=ba83ff368b7563c6)
    at Xceed.Wpf.DataGrid.DataGridContext.OnReceiveWeakEvent (Xceed.Wpf.DataGrid.v6.7, Version=6.7.19073.21200, Culture=neutral, PublicKeyToken=ba83ff368b7563c6)
    at System.Windows.WeakEventManager+ListenerList.DeliverEvent (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at System.Windows.WeakEventManager+ListenerList.DeliverEvent (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at System.Windows.WeakEventManager.DeliverEvent (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at Xceed.Wpf.DataGrid.DeferredOperationManager.Process (Xceed.Wpf.DataGrid.v6.7, Version=6.7.19073.21200, Culture=neutral, PublicKeyToken=ba83ff368b7563c6)
    at Xceed.Wpf.DataGrid.DataGridCollectionViewBase+DeferRefreshHelper.ProcessDispose (Xceed.Wpf.DataGrid.v6.7, Version=6.7.19073.21200, Culture=neutral, PublicKeyToken=ba83ff368b7563c6)
    at Xceed.Wpf.DataGrid.DataGridCollectionViewBase+DeferRefreshHelper.System.IDisposable.Dispose (Xceed.Wpf.DataGrid.v6.7, Version=6.7.19073.21200, Culture=neutral, PublicKeyToken=ba83ff368b7563c6)
    at System.Windows.Controls.ItemCollection+DeferHelper.Dispose (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at Xceed.Wpf.DataGrid.Row.EndEdit (Xceed.Wpf.DataGrid.v6.7, Version=6.7.19073.21200, Culture=neutral, PublicKeyToken=ba83ff368b7563c6)
    at Xceed.Wpf.DataGrid.DataGridContext.SetCurrent (Xceed.Wpf.DataGrid.v6.7, Version=6.7.19073.21200, Culture=neutral, PublicKeyToken=ba83ff368b7563c6)
    at Xceed.Wpf.DataGrid.SelectionManager.UpdateCurrentToSelection (Xceed.Wpf.DataGrid.v6.7, Version=6.7.19073.21200, Culture=neutral, PublicKeyToken=ba83ff368b7563c6)
    at Xceed.Wpf.DataGrid.SelectionManager.End (Xceed.Wpf.DataGrid.v6.7, Version=6.7.19073.21200, Culture=neutral, PublicKeyToken=ba83ff368b7563c6)
    at Xceed.Wpf.DataGrid.DataGridControl.OnSelectedItemChanged (Xceed.Wpf.DataGrid.v6.7, Version=6.7.19073.21200, Culture=neutral, PublicKeyToken=ba83ff368b7563c6)
    at System.Windows.DependencyObject.OnPropertyChanged (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at System.Windows.FrameworkElement.OnPropertyChanged (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at Xceed.Wpf.DataGrid.DataGridControl.OnPropertyChanged (Xceed.Wpf.DataGrid.v6.7, Version=6.7.19073.21200, Culture=neutral, PublicKeyToken=ba83ff368b7563c6)
    at System.Windows.DependencyObject.NotifyPropertyChange (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at System.Windows.DependencyObject.UpdateEffectiveValue (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at System.Windows.DependencyObject.InvalidateProperty (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at System.Windows.Data.BindingExpressionBase.Invalidate (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at System.Windows.Data.BindingExpression.TransferValue (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at MS.Internal.Data.ClrBindingWorker.OnSourcePropertyChanged (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at System.Windows.WeakEventManager+ListenerList`1.DeliverEvent (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at System.ComponentModel.PropertyChangedEventManager.OnPropertyChanged (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at System.ComponentModel.PropertyChangedEventHandler.Invoke (System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
    at Nevaris.UI.Infrastructure.NevarisItemsViewModel`4.set_CurrentItem (Nevaris.UI.Infrastructure, Version=20.1.0.0, Culture=neutral, PublicKeyToken=3b2ddf1840134659)
    at Nevaris.Build.Modules.Planen.GaebLv.ListView.GaebLvListView.InitListViewColumns (Nevaris.Build.Modules.Planen, Version=20.1.0.0, Culture=neutral, PublicKeyToken=3b2ddf1840134659)
    at Nevaris.Build.Modules.Planen.GaebLv.ListView.GaebLvListView.NevarisUserControl_Loaded (Nevaris.Build.Modules.Planen, Version=20.1.0.0, Culture=neutral, PublicKeyToken=3b2ddf1840134659)
    at System.Windows.EventRoute.InvokeHandlersImpl (PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at System.Windows.UIElement.RaiseEventImpl (PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at System.Windows.BroadcastEventHelper.BroadcastEvent (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at MS.Internal.LoadedOrUnloadedOperation.DoWork (PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks (PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks (PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at System.Windows.Media.MediaContext.RenderMessageHandlerCore (PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at System.Windows.Media.MediaContext.RenderMessageHandler (PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)

    As this exception is sporadically at our customers we do not have the possibility to create an example for reproducing the problem. Is there an opportunity to access the “SelectionManager” for catching this exception? Or you may have other suggestions for handling this exception so that out application won’t crash at the customer because of setting a current item in a data grid?

    Thanks in advance.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.