please see following code on winform load
method:
list<customersdto> res = new list<customersdto>(); res = _customerbo.getcustomers(); customerbindingsource.datasource = res; customerdatagridview.datasource = this.customerbindingsource; customerbindingnavigator.bindingsource = this.customerbindingsource;
now want filter on searchbutton not able see filtered record on screen.
customerbindingsource.filter = "active = false";
i missing something.. did reasearch. can give me exact code example? read implementing ibindinglist
not sure how bindingsource..
can help?
you don't have implement ibindinglist
. can construct bindinglist
datasource of customerbindingsource
. this:
customerbindingsource.datasource = new bindinglist<customersdto>(res);
Comments
Post a Comment