# C1.WPF.Grid.EmptyGridBehavior

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Grid_EmptyGridBehavior" data-uid="C1.WPF.Grid.EmptyGridBehavior" class="text-break">EmptyGridBehavior Class
</h1>
  <div class="markdown level0 summary"><p>Displays a visual element, typically a label with a message, when there are no rows in the grid.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">EmptyGridBehavior</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><span class="xref">IDependencyObject</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Grid.html">C1.WPF.Grid</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Grid.dll</h6>
  <h5 id="C1_WPF_Grid_EmptyGridBehavior_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class EmptyGridBehavior : C1Behavior&lt;FlexGrid&gt;, IDependencyObject</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class EmptyGridBehavior
    Inherits C1Behavior(Of FlexGrid)
    Implements IDependencyObject</code></pre>
  </div>
  <h5 id="C1_WPF_Grid_EmptyGridBehavior_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Sets the property IsVisible of <a class="xref" href="C1.WPF.Grid.EmptyGridBehavior.EmptyView.html#C1_WPF_Grid_EmptyGridBehavior_EmptyView">EmptyView</a> and the attached grid so that the empty view is displayed when there are no rows in the grid.</p>
</div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Grid_EmptyGridBehavior__ctor" data-uid="C1.WPF.Grid.EmptyGridBehavior.#ctor">
          <a class="xref" href="C1.WPF.Grid.EmptyGridBehavior.-ctor.html#C1_WPF_Grid_EmptyGridBehavior__ctor">EmptyGridBehavior()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Grid_EmptyGridBehavior_EmptyViewProperty" data-uid="C1.WPF.Grid.EmptyGridBehavior.EmptyViewProperty">
          <a class="xref" href="C1.WPF.Grid.EmptyGridBehavior.EmptyViewProperty.html">EmptyViewProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Grid.EmptyGridBehavior.EmptyView.html#C1_WPF_Grid_EmptyGridBehavior_EmptyView">EmptyView</a> dependency property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Grid_EmptyGridBehavior_EmptyView" data-uid="C1.WPF.Grid.EmptyGridBehavior.EmptyView">
          <a class="xref" href="C1.WPF.Grid.EmptyGridBehavior.EmptyView.html#C1_WPF_Grid_EmptyGridBehavior_EmptyView">EmptyView</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the empty view that will be shown when there are no rows in the grid.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Grid_EmptyGridBehavior_OnAttachedTo_C1_WPF_Grid_FlexGrid_" data-uid="C1.WPF.Grid.EmptyGridBehavior.OnAttachedTo(C1.WPF.Grid.FlexGrid)">
          <a class="xref" href="C1.WPF.Grid.EmptyGridBehavior.OnAttachedTo.html#C1_WPF_Grid_EmptyGridBehavior_OnAttachedTo_C1_WPF_Grid_FlexGrid_">OnAttachedTo(FlexGrid)</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the behavior is attached to the grid.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_EmptyGridBehavior_OnDetachingFrom_C1_WPF_Grid_FlexGrid_" data-uid="C1.WPF.Grid.EmptyGridBehavior.OnDetachingFrom(C1.WPF.Grid.FlexGrid)">
          <a class="xref" href="C1.WPF.Grid.EmptyGridBehavior.OnDetachingFrom.html#C1_WPF_Grid_EmptyGridBehavior_OnDetachingFrom_C1_WPF_Grid_FlexGrid_">OnDetachingFrom(FlexGrid)</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the behavior is detaching from the grid.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
