Hiding a row

  • Is there a way to suppress/hide a detail row if there's no data for that record?

    It would help save room.

    thx,

    John

  • There is a row property that can be set to conditionally hide a row. You simply code an expression that returns either true or false. The expression would need to work out whether there is anything to show or whether the row should be hidde

    e.g. =IIF( LEN(Fields!MyField.Value) = 0, TRUE, FALSE)

    or

    =LEN(Fields!MyField.Value) = 0

    These are the same - the second example is just avoids the IIF function.

  • Thanks happycat; that works perfect.

    John

  • Is using the following expression in the Hidden property the same thing?

    IIF(ISNOTHING(Fields!somefieldname.Value),True,False

  • Subject to testing, it certainly looks like it could produce the same result.

  • A better approach may be to filter the data out of your table. With SQL Server 2005 I have found that conditional visibility of detail rows can break the paging of reports.

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply