locked
How to hide a table when datasource is empty or null in RDLC? RRS feed

  • Question

  • User-595193528 posted

    Hi,

    I've multiple Table objects in my RDLC report. I show reports based on the data sources passed to Tables.

    I want to hide tables when datasource is empty or null.

    How to hide a table when data source is null or empty? and suppress that space in RDLC report?

    Thursday, September 5, 2013 8:27 AM

Answers

  • User441938976 posted

    At the Visibility->Hidden of the table properties, put expression something like:

    =iif(IsNothing("DataSet1"),true,false)

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, September 5, 2013 11:06 AM

All replies

  • User441938976 posted

    At the Visibility->Hidden of the table properties, put expression something like:

    =iif(IsNothing("DataSet1"),true,false)

    Thursday, September 5, 2013 10:53 AM
  • User441938976 posted

    At the Visibility->Hidden of the table properties, put expression something like:

    =iif(IsNothing("DataSet1"),true,false)

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, September 5, 2013 11:06 AM
  • User-1051986203 posted

    try this:

    =IIF(CountRows("datasetname"),false,true)



    Friday, September 6, 2013 2:49 AM