# C1.DataCollection.C1GroupDataCollection-1.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_DataCollection_C1GroupDataCollection_1__ctor_" data-uid="C1.DataCollection.C1GroupDataCollection`1.#ctor*">C1GroupDataCollection Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_DataCollection_C1GroupDataCollection_1__ctor_" data-uid="C1.DataCollection.C1GroupDataCollection`1.#ctor*"></a>
<h4 id="C1_DataCollection_C1GroupDataCollection_1__ctor_System_Collections_Generic_IEnumerable__0__System_Boolean_" data-uid="C1.DataCollection.C1GroupDataCollection`1.#ctor(System.Collections.Generic.IEnumerable{`0},System.Boolean)">C1GroupDataCollection(IEnumerable&lt;S&gt;, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.DataCollection.C1GroupDataCollection-1.html">C1GroupDataCollection&lt;S&gt;</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1GroupDataCollection(IEnumerable&lt;S&gt; source, bool isPlain)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(source As IEnumerable(Of S), isPlain 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.collections.generic.ienumerable-1">IEnumerable</a>&lt;S&gt;</td>
      <td><span class="parametername">source</span></td>
      <td><p>The source.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isPlain</span></td>
      <td><p>if set to <code>true</code> the groups will be inline with the items, otherwise the first level will contain groups and the items will be inside each group.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
