FilteredBindingList example needed

FilteredBindingList example needed

Old forum URL: forums.lhotka.net/forums/t/928.aspx


def jingle posted on Thursday, August 17, 2006

Hi, I'm trying to figure out how to use the FilteredBindingList to return objects from a collection where IntProperty > 7. Can someone show me how to create a filter (in c#) that the ApplyFilter method will accept. I've seen how to filter strings but im really looking to filter numbers and dates using > and <

 

thanks

def

 

FireGarden replied on Thursday, August 17, 2006

Have you seen the ObjectListView contributed by Brian on this site. Its a couple of classes for creating a view of an object that implements IList.

Its very easy to use. Just instantiate an ObjectListView passing in your business object then set the filter property exactly as your trying to do.

ObjectListView is your solution. It was recently updated and should be on this page or the next page as a post.

Rob

Copyright (c) Marimer LLC