What if we write filterExpression equal to null or “” ? Will all the rows be selected?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, I believe so.
In fact I more than believe so – having looked at Reflector (unfortunately the MSDN topic doesn’t say anything about empty expressions) a filter is only applied if the expression is not empty or null.
That said – why bother doing that? Just iterate over the Rows or call the Select() method.