The Filter
property of the BindingSource
only works with lists that implement the IBindingListView
interface. Since BindingList
only implements IBindingList
(which has no filtering capabilities) the Filter
property does nothing.
Either load your data into something like a List<User>
and provide the bsUsers.DataSource with filtered elements of the list, e.g. users.Where( u=> u.Id == 1 ).ToList()
or replace your BindingList by a list that implements IBindingListView. Possible pointers from here: Generic IBindingListView Implementations