0

What was the replacement for System.Linq.Expressions.Expression.Not(predicate) in Datatable.

I have a filter string and that need to be applied to the source as inverse. So I would like to have a Not operator here.

Any idea on this?

Sankarann
  • 2,625
  • 4
  • 22
  • 59
  • Please provide the code you have so far. – Romano Zumbé Jul 04 '13 at 04:08
  • `columnFilterString = "(ISNULL([CustomerName],'Null Column') <> 'David' AND ISNULL([CustomerName],'Null Column') <> 'Jerald')" ` – Sankarann Jul 04 '13 at 04:21
  • this need to be reverse and apply to the source. – Sankarann Jul 04 '13 at 04:23
  • 1
    I think there were a NOT operator that you can use to invert a boolean expression. try: `columnFilterString = "NOT(ISNULL([CustomerName],'Null Column') <> 'David' AND ISNULL([CustomerName],'Null Column') <> 'Jerald')"` – Mohammad Jul 04 '13 at 10:30

0 Answers0