Reputation: 1952
Please can someone assist.
I am wanting to filter a list of items based on another list.
I have a list of Electronics Device Models.
I have and add function which allows the user to add models to the list.
Within the Add function I have a combo box which contains all of the possible Models in my database.
I want to be able to filter the Items in the Combo Box to ensure that the user cannot select a Model that is already in the list.
I thought I could do this as a Lambda expression, but it seems there is not a NOT IN function available?
Upvotes: 0
Views: 94
Reputation: 316
Have you tried to use the Except method?
Produces the set difference of two sequences by using the default equality comparer to compare values.
Upvotes: 1