# GrapeCity.ActiveReports.PageReportModel.Visibility.ToggleItem

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_PageReportModel_Visibility_ToggleItem_" data-uid="GrapeCity.ActiveReports.PageReportModel.Visibility.ToggleItem*">ToggleItem Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_PageReportModel_Visibility_ToggleItem_" data-uid="GrapeCity.ActiveReports.PageReportModel.Visibility.ToggleItem*"></a>
<h4 id="GrapeCity_ActiveReports_PageReportModel_Visibility_ToggleItem" data-uid="GrapeCity.ActiveReports.PageReportModel.Visibility.ToggleItem">ToggleItem</h4>
<div class="markdown level1 summary"><p>Gets or sets the name of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.TextBox.html">TextBox</a> used to toggle the visibility of the report item.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string ToggleItem { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value indicating the name of the textbox used to toggle the visibility of the report item.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_PageReportModel_Visibility_ToggleItem_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Clicking an instance of the ToggleItem toggles the hidden state of every corresponding instance of the item. 
If the ToggleItem becomes hidden, this item becomes hidden. This cascading does not apply if the ToggleItem becomes hidden as a result 
of a containing table column or matrix cell becoming hidden.</p>
    <p>The ToggleItem must be a textbox in the same grouping scope as this item or in any containing grouping scope.</p>
    <p>If a value for the ToggleItem is omitted, no item toggles the hidden state of this item.</p>
    <p>ToggleItems are not allowed on and cannot refer to report items contained in a page header or footer.</p>
    <p>ToggleItems cannot refer to a report item contained within the current report item unless the current grouping scope has a parent.</p>
</div>
<h5 id="GrapeCity_ActiveReports_PageReportModel_Visibility_ToggleItem_examples">Examples</h5>
<pre><code class="lang-csharp">visibility.ToggleItem = "ToggleTextBoxName";</code></pre>

</div>
