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
1564
{"Specified argument was out of the range of valid values."}
posted

Hi,

Sometimes I got the following error :  {"Specified argument was out of the range of valid values."}

 

at Infragistics.Windows.DataPresenter.ViewableRecordCollection.c(Int32 A_0)
at Infragistics.Windows.DataPresenter.ViewableRecordCollection.System.Collections.IList.get_Item(Int32 index)
at System.Windows.Data.ListCollectionView.AdjustBefore(NotifyCollectionChangedAction action, Object item, Int32 index)
at System.Windows.Data.ListCollectionView.ProcessCollectionChanged(NotifyCollectionChangedEventArgs args)
at System.Windows.Data.CollectionView.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
at Infragistics.Windows.DataPresenter.ViewableRecordCollection.a(Object A_0, NotifyCollectionChangedEventArgs A_1)
at Infragistics.Windows.DataPresenter.RecordCollectionBase.OnCollectionChanged(NotifyCollectionChangedAction action, Object item, Int32 index)
at Infragistics.Windows.DataPresenter.RecordManager.a(Int32 A_0, Int32 A_1, DataRecord A_2, Boolean A_3)
at Infragistics.Windows.DataPresenter.RecordManager.b(NotifyCollectionChangedEventArgs A_0)
at Infragistics.Windows.DataPresenter.RecordManager.a(Object A_0, NotifyCollectionChangedEventArgs A_1)
at Infragistics.Windows.DataPresenter.RecordManager.a(Object A_0, Object A_1)\r\n   at Infragistics.Windows.DataPresenter.RecordManager.n()
at Infragistics.Windows.DataPresenter.RecordManager.d()

  • 138253
    Offline posted

    Hello,

     

    It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. So I have been looking through your post and I was able to get that exception when I try to get a record using this code:

     

    xamDataGrid1.Records.DataPresenter.ViewableRecords[130];

     

    and if the ViewableRecords collection doesn’t have element at 130 position I get the exception you posted, so I assume at some time you’re doing the same thing and what I can suggest is checking the Count of that collection, before you try to get an item from it.

     

    Feel free to write me if you have any other questions.