I am trying to query a collection using the filter expression from my radgrid. On the RadGrid I have the property of EnableLinqExpressions = "false"
However I get the exception Expression Expected
when using the code:
results = results.Where(filterExpression);
At the moment the filter expression is in the format
"(([SCRIPT_AGENT] = 'Jack Davies'))"
How can I solve this issue?
When I enter the following it works:
results = results.Where("SCRIPT_AGENT == @0", "Jack Davies")
Is there anyway to use my current filter expression or is there someway to convert it into a usable format?