locked
rdlc subreport norows property RRS feed

  • Question

  • User638162509 posted

    Hi,

    I need to display the norows message of the rdlc subreport conditionaly.

    ie. if a parameter value is 1 then need to display "student has no data". if parameter value is greater than 1 then need to display "Students have no data"

    How can we apply different norows messages based on the parameter value.

    Thanks in advance.

    Regards

    Priya

    Wednesday, October 5, 2011 6:04 AM

Answers

  • User-60558687 posted

    I have a 2005 RDL report and the expression works there. 

    If it the expression does not work, you may want to consider this alternative which is setting the Visible.Hidden property to an expression and adding a text box with the text you want to display when there is no data in the sub-report and setting this textbox's Visible.Hidden property to the negation of the previous expression. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, October 6, 2011 8:01 AM

All replies

  • User-60558687 posted

    Have you tried using an expression. For example,

    =IIF(Parameters!YourParameter.Value <= 1,"Student" , "Students")

    Wednesday, October 5, 2011 12:02 PM
  • User638162509 posted

    Yes. But expression is not supported in norows property. Only text is allowed.

    Regards

    Priya

    Thursday, October 6, 2011 12:58 AM
  • User-60558687 posted

    I have a 2005 RDL report and the expression works there. 

    If it the expression does not work, you may want to consider this alternative which is setting the Visible.Hidden property to an expression and adding a text box with the text you want to display when there is no data in the sub-report and setting this textbox's Visible.Hidden property to the negation of the previous expression. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, October 6, 2011 8:01 AM