This is a bit complicated to explain, but the stack trace clearly shows the exception comes from within Infragistics code.
at Infragistics.Controls.Grids.XamGrid.ExitCellFromEditModeInternalRow(Boolean cancel) at Infragistics.Controls.Grids.XamGrid.ExitEditModeInternal(Boolean cancel) at Infragistics.Controls.Grids.XamGrid.ExitEditMode(Boolean cancel) at Infragistics.Controls.Grids.RowsManager.InvalidateFiltering() at Infragistics.Controls.Grids.RowsManager.RowFiltersCollection_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) at Infragistics.Collections.CollectionBase`1.OnNotifyCollectionChanged(NotifyCollectionChangedEventArgs args) at Infragistics.Collections.CollectionBase`1.OnResetItems() at Infragistics.Collections.CollectionBase`1.ResetItems() at Infragistics.RecordFilterCollection.ResetItems() at Infragistics.Controls.Grids.RowFiltersCollection.ResetItems() at Infragistics.Collections.CollectionBase`1.Clear() at Infragistics.Controls.Grids.RowsManager.OnItemsSourceChanged(Boolean invalidateSelectionAndActivation) at Infragistics.Controls.Grids.RowsManager.set_ItemsSource(IEnumerable value) at Infragistics.Controls.Grids.XamGrid.ApplyItemSource(IEnumerable itemSource) at Infragistics.Controls.Grids.XamGrid.ItemsSourceChanged(DependencyObject obj, 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, Boolean isBindingInStyleSetter) at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) at Infragistics.Controls.Grids.XamGrid.set_ItemsSource(IEnumerable value) at EES.FD.Presentation.Web.Dashboard.CVRView.PTSensors._igridPTSensors_SelectedRowsCollectionChanged(Object sender, SelectionCollectionChangedEventArgs`1 e) at Infragistics.Controls.Grids.XamGrid.OnSelectedRowsCollectionChanged(SelectedRowsCollection previouslySelectedRows, SelectedRowsCollection newSelectedRows) at Infragistics.Controls.Grids.XamGrid.SelectRow(Row row, InvokeAction action) at Infragistics.Controls.Grids.XamGrid.SelectCell(Cell cell, InvokeAction action) at Infragistics.Controls.Grids.Cell.OnCellMouseDown(MouseEventArgs e) at Infragistics.Controls.Grids.XamGrid.XamWebGrid_MouseLeftButtonDown(Object sender, MouseButtonEventArgs e) at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args) at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
From the fire event to the SelectedRowCollection, this is fired on grid B. The event assigns the ItemsSource from grid B to grid A and the exception occurs on grid A. This occurs when grid A's add new row is in edit mode.
Update: Basically, cannot set the ItemsSource property while the grid is in edit mode. I am preventing the row from exiting edit mode while not all values are filled in.
Hello,
I have logged this behavior with our developers in our tracking system, with an issue ID of 111317. I have also created a support ticket on your behalf with number CAS-90728-26Z73P in order to link the development issue to it so that you are automatically updated when a Service Release containing your fix is available for download.
Click on button.
Put a row into edit mode.
For workaround, I set a flag prior to changing ItemsSource. When this flag is set, Row Exiting event does not cancel.
I have been looking into your explanation and would you please send us an isolated sample application where your issue occurs in order to provide you with more accurate assistance ?
Looking forward to hearing from you.