How to: Hide or Define Toggle Visibility on a Report Item (Visual Studio Report Designer)

You can specify visibility properties that determine whether an item on a report is visible or hidden. You can also configure toggle items that show or hide specific parts of a report.

To hide a report item

  1. Open the client report definition (.rdlc) file in graphical design mode.

  2. Right-click the report item and then click Properties.

  3. On the Visibility tab, for Initial visibility, select Hidden.

To hide a table group or matrix group

  1. Click the table or matrix so that column and row handles appear above and next to the table or matrix.

  2. Right-click the corner handle of the table or matrix, and then click Properties.

  3. On the Groups tab, select the group to edit, and then click Edit.

  4. On the Visibility tab, for Initial visibility, select Hidden.

To toggle the visibility of a report item

  1. Right-click the report item and then click Properties.

  2. On the Visibility tab, do the following:

    • For Initial visibility, select Hidden.

    • Select Visibility can be toggled by another report item.

    • In Report item, type or select the name of the text box that users click to show the selected item. The value for Report item must be the name of a text box that is either in the same group as the item that is being hidden or in another group or item in the same grouping hierarchy.

To toggle the visibility of a table group or matrix group

  1. In Layout view, click the table or matrix so that column and row handles appear above and next to the table or matrix.

  2. Right-click the corner handle of the table or matrix, and then click Properties.

  3. On the Groups tab, select the group to edit, and then click Edit.

  4. On the Visibility tab, do the following:

    • For Initial visibility, select Hidden.

    • Select Visibility can be toggled by another report item.

    • In Report item, type or select the name of the text box that users click to show the selected item. The value for Report item must be the name of a text box that is either in the same group as the item that is being hidden or in another group or item in the same container hierarchy (up to and including the report body).

See Also

Concepts

Adding Interactivity, Visibility, and Navigation to a Report (Visual Studio Report Designer)
Configuring Subreports and Drillthrough Reports (Visual Studio Report Designer)