When i Filter a DataView
someView.RowFilter = "ID<>'A22' and isnull(IsVerified,0)=0"
What is the logic behind isnull(IsVerified,0)=0?
Does it mean the column IsVerified is null or does it check the column IsVerified not null ?
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.
The
IsNull(IsVerified,0)call checks the IsVerified value for Null, and if it is null, returns 0, otherwise it returns the value of IsVerified. So since it is then comparing that with 0, your row will be selected if IsVerified has the value of 0 or null.More about IsNull function here.