FilteredBindingList Find method

FilteredBindingList Find method

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


bgilbert posted on Monday, April 02, 2007

I get a NotSupportedException when trying to call this. I've confirmed that the property name is accurate and that the item to be found exists in the collection.

Any thoughts would be helpful.

Thanks,
Barry

ajj3085 replied on Monday, April 02, 2007

In your subclass, do you set AllowFilter to true in your constructor?

bgilbert replied on Monday, April 02, 2007

I don't know what AllowFilter is. Do you mean ApplyFilter? If so, I'm not using the filter feature. I'm just using this to get at the Find method.

I've decided, though, to put a Find method in my collection class. It's simple enough.

Thanks,
Barry

ajj3085:
In your subclass, do you set AllowFilter to true in your constructor?

ajj3085 replied on Monday, April 02, 2007

Opps.. the property is SupportsSearching.  For the SortedBindingList, the relevent property is SupportsSorting.

The class which FilteredBindingList will wrap must have that property set to true.

maurera replied on Tuesday, April 03, 2007

I seem to be having the same problem.  I am using a ReadOnlyBinding list as list that FilteredBindingList will wrap.  Am I missing something, because I can't find a SuportsSearching property.  I see a SupportsSearchingCore.  But that is a ReadOnly property.  I will spend a little time searching the forums, and take a look at the Object Browser to see if I can find any clues.

Copyright (c) Marimer LLC