# C1.Report.Group

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Report_Group" data-uid="C1.Report.Group" class="text-break">Group Class
</h1>
  <div class="markdown level0 summary"><p>Object used to sort and group report data.</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"><a class="xref" href="C1.Report.ReportObject.html">ReportObject</a></div>
    <div class="level2"><span class="xref">Group</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.Report.IScriptContextProvider.html">IScriptContextProvider</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Report.html">C1.Report</a></h6>
  <h6><strong>Assembly</strong>: C1.Report.dll</h6>
  <h5 id="C1_Report_Group_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Group : ReportObject, IScriptContextProvider</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class Group
    Inherits ReportObject
    Implements IScriptContextProvider</code></pre>
  </div>
  <h5 id="C1_Report_Group_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Each <b>Group</b> has a Header section and a Footer section that can be used to display
aggregate information for the group.</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_Report_Group__ctor" data-uid="C1.Report.Group.#ctor">
          <a class="xref" href="C1.Report.Group.-ctor.html#C1_Report_Group__ctor">Group()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Report.Group.html">Group</a> class.</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_Report_Group_GroupBy" data-uid="C1.Report.Group.GroupBy">
          <a class="xref" href="C1.Report.Group.GroupBy.html#C1_Report_Group_GroupBy">GroupBy</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the expression used to break records into groups.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_Group_KeepTogether" data-uid="C1.Report.Group.KeepTogether">
          <a class="xref" href="C1.Report.Group.KeepTogether.html#C1_Report_Group_KeepTogether">KeepTogether</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether the group should be kept together on a page.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_Group_OutlineLabel" data-uid="C1.Report.Group.OutlineLabel">
          <a class="xref" href="C1.Report.Group.OutlineLabel.html#C1_Report_Group_OutlineLabel">OutlineLabel</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="C1.Report.ScriptStringValue.html">ScriptStringValue</a> yielding the label of the group in the outline tree.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_Group_OutlineParent" data-uid="C1.Report.Group.OutlineParent">
          <a class="xref" href="C1.Report.Group.OutlineParent.html#C1_Report_Group_OutlineParent">OutlineParent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the object that will be the parent of the current group in the outline tree.
If unspecified, the report hierarchy will be used to determine the parent.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_Group_ParentReport" data-uid="C1.Report.Group.ParentReport">
          <a class="xref" href="C1.Report.Group.ParentReport.html#C1_Report_Group_ParentReport">ParentReport</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Report.FlexReport.html">FlexReport</a> object that contains this <a class="xref" href="C1.Report.Group.html">Group</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_Group_SectionFooter" data-uid="C1.Report.Group.SectionFooter">
          <a class="xref" href="C1.Report.Group.SectionFooter.html#C1_Report_Group_SectionFooter">SectionFooter</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Report.Section.html">Section</a> representing the footer of this group.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_Group_SectionHeader" data-uid="C1.Report.Group.SectionHeader">
          <a class="xref" href="C1.Report.Group.SectionHeader.html#C1_Report_Group_SectionHeader">SectionHeader</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Report.Section.html">Section</a> representing the header of this group.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_Group_Sort" data-uid="C1.Report.Group.Sort">
          <a class="xref" href="C1.Report.Group.Sort.html#C1_Report_Group_Sort">Sort</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the group's sort order.
If <a class="xref" href="C1.Report.Group.SortExpression.html#C1_Report_Group_SortExpression">SortExpression</a> is specified, it is used for sorting, otherwise <a class="xref" href="C1.Report.Group.GroupBy.html#C1_Report_Group_GroupBy">GroupBy</a> is used.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_Group_SortExpression" data-uid="C1.Report.Group.SortExpression">
          <a class="xref" href="C1.Report.Group.SortExpression.html#C1_Report_Group_SortExpression">SortExpression</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the sort expression. Can be used to sort the group instances by an aggregate function.</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_Report_Group_AssignFrom_C1_Report_ReportObject_System_Boolean_" data-uid="C1.Report.Group.AssignFrom(C1.Report.ReportObject,System.Boolean)">
          <a class="xref" href="C1.Report.Group.AssignFrom.html#C1_Report_Group_AssignFrom_C1_Report_ReportObject_System_Boolean_">AssignFrom(ReportObject, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Assigns (copies) properties from another <a class="xref" href="C1.Report.Group.html">Group</a> to the current object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_Group_GetPropsTable" data-uid="C1.Report.Group.GetPropsTable">
          <a class="xref" href="C1.Report.Group.GetPropsTable.html#C1_Report_Group_GetPropsTable">GetPropsTable()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Report_Group_Import_C1_Document_Serialization_XmlNodeWrapperBase_" data-uid="C1.Report.Group.Import(C1.Document.Serialization.XmlNodeWrapperBase)">
          <a class="xref" href="C1.Report.Group.Import.html#C1_Report_Group_Import_C1_Document_Serialization_XmlNodeWrapperBase_">Import(XmlNodeWrapperBase)</a>
        </td>
        <td class="markdown level1 summary"><p>Imports node from legacy xml report definition;</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
