locked
FilterExpression and no records RRS feed

  • Question

  • I have a problem with expressions that should return no records. When I set FilterExpression to "1=0" datasource (and binded gridview) is showing all records. I cannot even catch this to for example show message. Do you have any ideas?

    Tuesday, October 4, 2011 2:42 PM

Answers

  • Hi radeks11,

    Are you using SqlDataSource? I test it, but works on my computer, you can try to set it "false"<=>"1=0".

    Have a nice day.


    Alan Chen[MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Alan_chen Tuesday, October 18, 2011 2:06 AM
    Thursday, October 6, 2011 2:40 AM