I\'m trying to filter a BindingSource with a BindingList as Datasource. I tried BindingSource.Filter = \'Text Condition\' But it didn\'t work, nothing happens, the data on s
As per http://msdn.microsoft.com/en-us/library/system.windows.forms.bindingsource.filter.aspx
Only underlying lists that implement the
IBindingListViewinterface support filtering.
BindingList
BindingSource class, while not generic, does implement this Interface, so try using this as your personas collection. I get the feeling that simply assigning a new BindingSource's datasource to a BindingList won't suffice, since it doesn't change the underlying list. Try:
BindingSource personas = new BindingSource { new Person{ ... }, ... };