FilteredBindingList Find method returns index of Unfiltered list!

FilteredBindingList Find method returns index of Unfiltered list!

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


razorkai posted on Wednesday, October 18, 2006

This is causing me a few problems.  The class has an OriginalIndex method but it is marked private so can't be used.  Anyone found a way to get the filtered index?  I can't use IndexOf as this requires an item, and I only have a key value to search with - hence the use of Find!

RockfordLhotka replied on Wednesday, October 18, 2006

To me this looks like a bug, where the Find() method should return the adjusted index. The same issue is in SortedBindingList.

I've made the changes in cvs, and they'll roll out with version 2.1.1.

razorkai replied on Wednesday, October 18, 2006

Excellent!  Just tried the fix and it works great.  Thanks Rocky!

Copyright (c) Marimer LLC