none
How to catch no data in the report viewer on the code behind? RRS feed

  • Question

  • Hi I have a question.

    I use object datasource.

    When the report don have any data, how to set the report viewer to invisiable?

    Is this any way to know the object datasourse is null? ( It look always have some thing inside)


    Thanks

     
    Tuesday, May 22, 2007 4:42 PM

All replies

  • I am not sure about the Report Viewer part , however, you can add something like this on the Report (.RDLC) file in the Visibility Expression of your table/Textbox or whatever you want to show/hide based on Data...

     

    =IIF(Count(Fields!ABC.Value)= 0),FALSE, TRUE))

    Friday, May 25, 2007 8:47 PM