Create in-memory filter on custom field

Posts   
 
    
mds avatar
mds
User
Posts: 33
Joined: 24-Sep-2006
# Posted on: 25-May-2008 21:12:58   

Hi all, I'm using version LLBLGEN 2.5, adapter template,
I have an EntityView2 collection of entities. I have added a custom property to entity object and I need to display that collection on a datagridview filtered on the value of this property

I've tried with Filter property of BindingSource object, but it don't work ... so I trying solution proposed in this post

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=8297&HighLight=1 (Filter directly the entityview by a predicate)

Is possible to create a predicate expression that use property that don't came from DB ?

Thanks in advance

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 25-May-2008 22:23:36   

Hi mds,

You can perfomr in-memory filter using EntityViews and EntityProperties: http://llblgen.com/TinyForum/Messages.aspx?ThreadID=12864

For more info read LLBLGenPro Help - Using the generated code - (Adapter | SS) - Using entityviews and entitycollections - Filtering and sorting and EntityView2.

Hope helpful simple_smile

David Elizondo | LLBLGen Support Team
mds avatar
mds
User
Posts: 33
Joined: 24-Sep-2006
# Posted on: 26-May-2008 00:11:51   

Thank you very much David .. smile .It work perfectly ! I'm increasingly surprised by the potential of this product...