filteredbindinglist and complex criteria help

filteredbindinglist and complex criteria help

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


dean posted on Sunday, August 06, 2006

    I see how Rocky applies simple criteria in the filteredbindinglist(of t) class but I don't really think I understand how to apply more complex criteria. In the code it looks like there is a check for a custom filter provider but without anyway to set that provider (that I can see). My situation:

binding list of (ContactItems)

properties that I need to filter on:
Inactive (true, false)
Type (Disqualified, Lead, Prospect)

I have two checkboxes - Include Inactive (if not checked then we filter inactive)
and Include Disqualified (if not checked then we filter contacts whose type is "Disqualified")

both may or may not be checked.

TIA

Dean.

RockfordLhotka replied on Monday, August 07, 2006

Well that appears to be a pretty major oversight... Smile [:)]

This is exactly why I encourage people to try out the new code/concepts - because sometimes I just plain miss the obvious...

dean replied on Monday, August 07, 2006

So far other than that it is working real well.

BTW - I am amazed at how thin I can make my windows UI code with the new framework (and I suspect my evolving abilities with CSLA/mutli tier design). It is as close to fun as work gets :)

Dean

RockfordLhotka replied on Monday, August 07, 2006

Well I'm glad to hear that!! Big Smile [:D]

I have now added both a ctor overload and a property to allow setting of the filter provider delegate. The changes are in cvs for both VB and C#.

Copyright (c) Marimer LLC