Minor bug in LinqObservableCollection

Minor bug in LinqObservableCollection

Old forum URL: forums.lhotka.net/forums/t/9641.aspx

JonStonecash posted on Friday, October 15, 2010

We are using the CSLA LinqObservableCollection with WPF 4 in CSLA 4.0.1.  This is a very useful class. However, two of our team members, Brent Edwards and Marty Robertson, have discovered that there is a minor bug.  Specifically,  in the IndexOf(object value) the released code reads: 

return _baseCollection.IndexOf((T)value);

We think that this incorrect and the the line should read:

return _filteredCollection.IndexOf((T)value);

Without this change, the WPF data grid ends up selecting the wrong line in the grid.

Jon Stonecash

RockfordLhotka replied on Friday, October 15, 2010

Thanks Jon, I'll add this to the bug list for 4.1.

Copyright (c) Marimer LLC