Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
runtime exception when moving column in xamdatagrid
posted

Below error is thrown when moving columns. This happens intermittently. Any idea where this is coming from?

xamDataGrid ver: 12.1.20121.1010

Message: Collection was modified; enumeration operation may not execute.

Source: mscorlib

StackTrace:

   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()    at Infragistics.Controls.Layouts.Primitives.GridBagLayoutManager.ResizeManager.CloneLayoutManagerHelper(GridBagLayoutManager source)    at Infragistics.Controls.Layouts.Primitives.GridBagLayoutManager.ResizeManager..ctor(GridBagLayoutManager layoutManager, ILayoutContainer layoutContainer, Object containerContext, Boolean autoFitWidth, Boolean autoFitHeight)    at Infragistics.Controls.Layouts.Primitives.GridBagLayoutManager.GetResizeRange(ILayoutContainer layoutContainer, Object containerContext, ILayoutItem resizeItem, Double& maxDeltaLeft, Double& maxDeltaRight, Double& maxDeltaTop, Double& maxDeltaBottom, Boolean autoFitWidth, Boolean autoFitHeight, IList`1 synchronizedItems)    at Infragistics.Windows.DataPresenter.DataPresenterBase.Infragistics.Windows.Resizing.IResizeHost.InitializeResizeConstraints(FrameworkElement resizeArea, FrameworkElement resizableItem, ResizeConstraints constraints)    at Infragistics.Windows.DataPresenter.DataPresenterBase.Infragistics.Windows.Resizing.IResizeHost.CanResize(FrameworkElement resizableItem, Boolean resizeInXAxis)    at Infragistics.Windows.Resizing.ResizeController.GetElementToResize(FrameworkElement element, MouseDevice mouseDevice, Nullable`1& processWidth)    at Infragistics.Windows.Resizing.ResizeController.OnQueryCursor(Object sender, QueryCursorEventArgs 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.MouseDevice.UpdateCursorPrivate()    at System.Windows.Input.MouseDevice.PostProcessInput(Object sender, ProcessInputEventArgs e)    at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)    at System.Windows.Input.InputManager.ProcessStagingArea()    at System.Windows.Input.MouseDevice.Synchronize()    at System.Windows.Input.MouseDevice.ChangeMouseCapture(IInputElement mouseCapture, IMouseInputProvider providerCapture, CaptureMode captureMode, Int32 timestamp)    at System.Windows.Input.MouseDevice.PreNotifyInput(Object sender, NotifyInputEventArgs e)    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)