BindingSource.Filter

Posts   
 
    
Posts: 6
Joined: 05-Dec-2006
# Posted on: 05-Dec-2006 15:17:12   

I have just started using LLBLGen.

When I create an EntityCollection and attach a BindingSource to that EntityCollection, I don't seem to be able to apply a Filter to the BindingSource as we frequently did when using DataSet's

The SupportsFiltering property of the BindingSource is now set to False.

Any way to enable? If not, what is the standard method for filtering the records which are in the BindingSource?

Thanks

jbb avatar
jbb
User
Posts: 267
Joined: 29-Nov-2005
# Posted on: 05-Dec-2006 15:43:58   

Hello,

do you use the LLBLGenProDataSource or did you done the binding in code-behind? What version of llbl do you use?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39873
Joined: 17-Aug-2003
# Posted on: 05-Dec-2006 15:48:28   

Heh simple_smile Jbb: bindingsource: winforms, LLBLGenProdatasource: webforms wink

John: bind an entityview2 created from the collection (you could use the view returned from the collection's DefaultView property) instead and set that view's filter property to a predicate filter .

Frans Bouma | Lead developer LLBLGen Pro
Posts: 6
Joined: 05-Dec-2006
# Posted on: 05-Dec-2006 18:03:19   

That works perfectly. Thanks.