# GrapeCity.ActiveReports.PageReportModel.Visibility.Validate

## Content

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



<h1 id="GrapeCity_ActiveReports_PageReportModel_Visibility_Validate_" data-uid="GrapeCity.ActiveReports.PageReportModel.Visibility.Validate*">Validate Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_PageReportModel_Visibility_Validate_" data-uid="GrapeCity.ActiveReports.PageReportModel.Visibility.Validate*"></a>
<h4 id="GrapeCity_ActiveReports_PageReportModel_Visibility_Validate_GrapeCity_ActiveReports_PageReportModel_ValidationContext_" data-uid="GrapeCity.ActiveReports.PageReportModel.Visibility.Validate(GrapeCity.ActiveReports.PageReportModel.ValidationContext)">Validate(ValidationContext)</h4>
<div class="markdown level1 summary"><p>Validates the current state of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Visibility.html">Visibility</a> object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ValidationEntry[] Validate(ValidationContext context)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.ValidationContext.html">ValidationContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.ValidationContext.html">ValidationContext</a> object representing the context details during validation.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</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="GrapeCity.ActiveReports.PageReportModel.ValidationEntry.html">ValidationEntry</a>[]</td>
      <td><p>An array of <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.ValidationEntry.html">ValidationEntry</a> objects representing the information about the validation warnings or failures.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.IValidateable.Validate.html#GrapeCity_ActiveReports_PageReportModel_IValidateable_Validate_GrapeCity_ActiveReports_PageReportModel_ValidationContext_">IValidateable.Validate(ValidationContext)</a></div>
<h5 id="GrapeCity_ActiveReports_PageReportModel_Visibility_Validate_GrapeCity_ActiveReports_PageReportModel_ValidationContext__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 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentnullexception">ArgumentNullException</a></td>
      <td><p>Throws if <code class="paramref">context</code> is <code>null</code>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
