0
请参阅上一个WinForm Load
方法如下代码:BindindSource过滤器不工作
List<CustomersDTO> res = new List<CustomersDTO>();
res = _CustomerBO.GetCustomers();
customerBindingSource.DataSource = res;
customerDataGridView.DataSource = this.customerBindingSource;
customerBindingNavigator.BindingSource = this.customerBindingSource;
现在我想在搜索按钮过滤,但我没能在屏幕上看到过滤记录。
customerBindingSource.Filter = "Active = false";
我失去了一些东西..我做了研究。任何人都可以给我确切的代码示例吗?我读了关于实施IBindingList
,但不知道如何用我的BindingSource做到这一点..
任何人都可以帮忙吗?
Evn虽然我已经添加了Bindinglist作为数据源..仍然过滤器没有工作。我错过了什么吗? – user2573117