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
270
Xamdatagrid exception
posted

HI,

I have a xamdatagrid that is connected to a real-time data source via an iBindingList. The data source regularly fires updates to indicate a  record has been updated, added or removed. ocassionaly I get the exception listed below when the grid attempts to remove  a record. It quite hard to send you a sample of the problem as its very specifiic to our environment. Can you please advise if the stack trace below is something that has been observed and fixed. I'm using v10.1 patch 2018

  

Inner Exception:

Index was outside the bounds of the array.

   at Infragistics.Windows.Helpers.SparseArray.ValidateIndex(Int32 index)

   at Infragistics.Windows.Helpers.SparseArray.GetItem(Int32 index, ICreateItemCallback createItemCallback)

   at Infragistics.Windows.Helpers.SparseArray.get_Item(Int32 index)

   at Infragistics.Windows.DataPresenter.UnsortedRecordSparseArray.GetItem(Int32 index, Boolean create, Boolean calledFromSortedManagerSparseArray, Boolean& newRowCreated)

   at Infragistics.Windows.DataPresenter.MainRecordSparseArray.CreateItem(SparseArray array, Int32 relativeIndex)

   at Infragistics.Windows.Helpers.SparseArray.CreateItemHelper(ICreateItemCallback createItemCallback, Node node, Int32 nodeIndex, Int32 overallIndex)

   at Infragistics.Windows.Helpers.SparseArray.GetItem(Int32 index, ICreateItemCallback createItemCallback)

   at Infragistics.Windows.DataPresenter.MainRecordSparseArray.GetItem(Int32 index, Boolean create)

   at Infragistics.Windows.DataPresenter.RecordCollectionBase.get_Item(Int32 index)

   at Infragistics.Windows.DataPresenter.ViewableRecordCollection.CachedInfo.GetFixedNonSpecialRecords(List`1 list, Boolean top)

   at Infragistics.Windows.DataPresenter.ViewableRecordCollection.VerifySpecialRecords()

   at Infragistics.Windows.DataPresenter.ViewableRecordCollection.Verify()

   at Infragistics.Windows.DataPresenter.ViewableRecordCollection.GetIndexOf(Record record, Boolean verify)

   at Infragistics.Windows.DataPresenter.ViewableRecordCollection.System.Collections.IList.IndexOf(Object value)

   at Infragistics.Windows.DataPresenter.ViewableRecordCollection.IndexOf(Record record)

   at Infragistics.Windows.DataPresenter.ViewableRecordCollection.RemoveRecord(Record record, Boolean notifyListeners)

   at Infragistics.Windows.DataPresenter.RecordManager.RemoveAt(Int32 index, Boolean notifyListeners)

   at Infragistics.Windows.DataPresenter.RecordManager.RemoveRecordHelper(Int32 index)

   at Infragistics.Windows.DataPresenter.RecordManager.OnSourceCollectionAddOrRemove(NotifyCollectionChangedEventArgs e)

   at Infragistics.Windows.DataPresenter.RecordManager.OnBindingListChanged(Object sender, ListChangedEventArgs e)

   at Infragistics.Windows.DataPresenter.RecordManager.ProcessChangeNotification(Object sender, Object eventArgs)

   at Infragistics.Windows.DataPresenter.RecordManager.OnChangeNotification(Object sender, Object eventArgs, Boolean isReset)

   at Infragistics.Windows.DataPresenter.RecordManager.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)

   at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)

   at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)

   at Infragistics.Windows.Helpers.BindingListChangedEventManager.OnListChanged(Object sender, ListChangedEventArgs e)

   at MorganStanley.MSDotNet.MR2.SQData.Linq.Internal.BindableViewBase.OnListChanged(Object sender_, ListChangedEventArgs args_) in m:\dev\msdotnet\mr2\8.3.0\src\assemblies\MR2\SQData\LinQ\Internal\MR2\BindableViewBase.cs:line 477

   at MorganStanley.MSDotNet.MR2.SQData.Linq.Internal.BindableViewBase.SendEventToUI(ListChangedEventArgs args_) in m:\dev\msdotnet\mr2\8.3.0\src\assemblies\MR2\SQData\LinQ\Internal\MR2\BindableViewBase.cs:line 452

   at MorganStanley.MSDotNet.MR2.SQData.Linq.Internal.TypedBindableView`1.RemoveListRow(Int32 mr2RowIndex_, Int32 listIndex_) in m:\dev\msdotnet\mr2\8.3.0\src\assemblies\MR2\SQData\LinQ\Internal\MR2\TypedBindableView.cs:line 510

   at MorganStanley.MSDotNet.MR2.SQData.Linq.Internal.BindableViewBase.HandleRemoveRow(Object sender_, Int32 rowIndex_) in m:\dev\msdotnet\mr2\8.3.0\src\assemblies\MR2\SQData\LinQ\Internal\MR2\BindableViewBase.cs:line 516

   at MorganStanley.MSDotNet.MR2.SQData.Linq.Internal.BindableViewBase.HandleUnderlyingVersionChange(Object sender_, IMR2SQDataStructureChange version_) in m:\dev\msdotnet\mr2\8.3.0\src\assemblies\MR2\SQData\LinQ\Internal\MR2\BindableViewBase.cs:line 408

   at MorganStanley.MSDotNet.MR2.SQData.MR2SQDataUserModeBoundaryLayer.SyncedHandleVersionChange(Object args_) in m:\dev\msdotnet\mr2\8.3.0\src\assemblies\MR2\SQData\MR2SQDataUserModeBoundaryLayer.cs:line 1213