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
1675
Key already exists error when adding new row
posted

Hi,

I do not have a sample ready, but when i enable conditional formatting via code behind and add new new rows to the underlying collection, the grid throws exception "Key already exists"

Below is the stack trace for your reference. I am using 12.2.20122.2204, the same issue occurs with previous releases as well.

at Infragistics.Collections.WeakDictionary`2.AddHelper(TKey key, TValue value, Boolean replace) at Infragistics.Controls.Grids.RowsManager.AttachDetachPropertyChanged(INotifyPropertyChanged propertyChangedDataObject, Boolean attach) at Infragistics.Controls.Grids.RowsManager.DataManager_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) at Infragistics.DataManagerBase.OnDataSourceCollectionChanged(NotifyCollectionChangedEventArgs e) at Infragistics.DataManager`1.OnDataSourceCollectionChanged(NotifyCollectionChangedEventArgs e) at Infragistics.DataManagerBase.

b__3(DataManagerBase instance, Object s, NotifyCollectionChangedEventArgs e) at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args) at System.Windows.Data.ListCollectionView.ProcessCollectionChangedWithAdjustedIndex(NotifyCollectionChangedEventArgs args, Int32 adjustedOldIndex, Int32 adjustedNewIndex) at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e) at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) at

e catchHandler)

<Add Data Here>

Parents Reply Children
No Data