SqlDataSource.FilteExpression "!=" does not work?

  • Thread starter Thread starter Assimalyst
  • Start date Start date
A

Assimalyst

Hi,

I have a SQlDataSource that binds to a GridView. I am using a
parameterized FilterExpression to filter the results.

If i use MyField = '{0}' it works fine. But i need to do MyField !=
'{0}'. This breaks with an error: 'Cannot interpret token '!' at
position 16.'

What syntax results in a working equivalent of this statement?

Many Thanks
 
Found two alternatives:

NOT(MyField = '{0}')

And

MyField <> '{0}'

Hope this helps someone.
 
Back
Top