# C1.Win.FlexGrid.GroupDescription.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_GroupDescription__ctor_" data-uid="C1.Win.FlexGrid.GroupDescription.#ctor*">GroupDescription Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_GroupDescription__ctor_" data-uid="C1.Win.FlexGrid.GroupDescription.#ctor*"></a>
<h4 id="C1_Win_FlexGrid_GroupDescription__ctor_System_String_" data-uid="C1.Win.FlexGrid.GroupDescription.#ctor(System.String)">GroupDescription(string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Win.FlexGrid.GroupDescription.html">GroupDescription</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GroupDescription(string propertyName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(propertyName As String)</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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">propertyName</span></td>
      <td><p>Name of the property to group on.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_FlexGrid_GroupDescription__ctor_" data-uid="C1.Win.FlexGrid.GroupDescription.#ctor*"></a>
<h4 id="C1_Win_FlexGrid_GroupDescription__ctor_System_String_System_Nullable_System_ComponentModel_ListSortDirection__" data-uid="C1.Win.FlexGrid.GroupDescription.#ctor(System.String,System.Nullable{System.ComponentModel.ListSortDirection})">GroupDescription(string, ListSortDirection?)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Win.FlexGrid.GroupDescription.html">GroupDescription</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GroupDescription(string propertyName, ListSortDirection? sortDirection)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(propertyName As String, sortDirection As ListSortDirection?)</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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">propertyName</span></td>
      <td><p>Name of the property to group on.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.listsortdirection">ListSortDirection</a>?</td>
      <td><span class="parametername">sortDirection</span></td>
      <td><p>Sort direction to apply within the group. Defaults to Ascending,
may be set to null to group but not sort by this property.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_FlexGrid_GroupDescription__ctor_" data-uid="C1.Win.FlexGrid.GroupDescription.#ctor*"></a>
<h4 id="C1_Win_FlexGrid_GroupDescription__ctor_System_String_System_Nullable_System_ComponentModel_ListSortDirection__System_Boolean_" data-uid="C1.Win.FlexGrid.GroupDescription.#ctor(System.String,System.Nullable{System.ComponentModel.ListSortDirection},System.Boolean)">GroupDescription(string, ListSortDirection?, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Win.FlexGrid.GroupDescription.html">GroupDescription</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GroupDescription(string propertyName, ListSortDirection? sortDirection, bool group)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(propertyName As String, sortDirection As ListSortDirection?, group As Boolean)</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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">propertyName</span></td>
      <td><p>Name of the property to group on.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.listsortdirection">ListSortDirection</a>?</td>
      <td><span class="parametername">sortDirection</span></td>
      <td><p>Sort direction to apply within the group. Defaults to Ascending,
may be set to null to group but not sort by this property.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">group</span></td>
      <td><p>Whether to group by this property. Defaults to true,
set to false if you want to sort but not group by this property.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
