# GrapeCity.ActiveReports.PageReportModel.TableCell

## Content

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



  <h1 id="GrapeCity_ActiveReports_PageReportModel_TableCell" data-uid="GrapeCity.ActiveReports.PageReportModel.TableCell" class="text-break">TableCell Class
</h1>
  <div class="markdown level0 summary"><p>Represents a content container of a cell in a table data region.</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="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a></div>
    <div class="level3"><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.ReportComponent.html">ReportComponent</a></div>
    <div class="level4"><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.ReportComponentContainer.html">ReportComponentContainer</a></div>
    <div class="level5"><span class="xref">TableCell</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.IReportComponentContainer.html">IReportComponentContainer</a></div>
    <div><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.IRdlContainer.html">IRdlContainer</a></div>
    <div><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.IReportComponent.html">IReportComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.IValidateable.html">IValidateable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.html">GrapeCity.ActiveReports.PageReportModel</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Core.Rdl.dll</h6>
  <h5 id="GrapeCity_ActiveReports_PageReportModel_TableCell_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class TableCell : ReportComponentContainer, IReportComponentContainer, IRdlContainer, IReportComponent, IComponent, IDisposable, IValidateable</code></pre>
  </div>
  <h5 id="GrapeCity_ActiveReports_PageReportModel_TableCell_examples"><strong>Examples</strong></h5>
  <p>TableCell tableCell = new TableCell;
tableCell.ColSpan = 2;
tableCell.RowSpan = 1;
tableCell.ReportItems = { new TextBox { Name = &quot;Cell1&quot;, Width = &quot;100pt&quot;, Height = &quot;1in&quot; }};</p>

  <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="GrapeCity_ActiveReports_PageReportModel_TableCell__ctor" data-uid="GrapeCity.ActiveReports.PageReportModel.TableCell.#ctor">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.TableCell.-ctor.html#GrapeCity_ActiveReports_PageReportModel_TableCell__ctor">TableCell()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.TableCell.html">TableCell</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="GrapeCity_ActiveReports_PageReportModel_TableCell_AutoMergeMode" data-uid="GrapeCity.ActiveReports.PageReportModel.TableCell.AutoMergeMode">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.TableCell.AutoMergeMode.html#GrapeCity_ActiveReports_PageReportModel_TableCell_AutoMergeMode">AutoMergeMode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a mode to merge the adjacent cells (text boxes) in a row group with the same value.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_TableCell_ColSpan" data-uid="GrapeCity.ActiveReports.PageReportModel.TableCell.ColSpan">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.TableCell.ColSpan.html#GrapeCity_ActiveReports_PageReportModel_TableCell_ColSpan">ColSpan</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a number of columns the cell spans.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_TableCell_RowSpan" data-uid="GrapeCity.ActiveReports.PageReportModel.TableCell.RowSpan">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.TableCell.RowSpan.html#GrapeCity_ActiveReports_PageReportModel_TableCell_RowSpan">RowSpan</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a number of rows the cell spans.</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="GrapeCity_ActiveReports_PageReportModel_TableCell_Validate_GrapeCity_ActiveReports_PageReportModel_ValidationContext_" data-uid="GrapeCity.ActiveReports.PageReportModel.TableCell.Validate(GrapeCity.ActiveReports.PageReportModel.ValidationContext)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.TableCell.Validate.html#GrapeCity_ActiveReports_PageReportModel_TableCell_Validate_GrapeCity_ActiveReports_PageReportModel_ValidationContext_">Validate(ValidationContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates the current state of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.TableCell.html">TableCell</a> object.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.RomUtils.GetReportFromComponent.html#GrapeCity_ActiveReports_PageReportModel_RomUtils_GetReportFromComponent_GrapeCity_ActiveReports_PageReportModel_IReportComponent_">RomUtils.GetReportFromComponent(IReportComponent)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.RomUtils.GetReportSectionFromComponent.html#GrapeCity_ActiveReports_PageReportModel_RomUtils_GetReportSectionFromComponent_GrapeCity_ActiveReports_PageReportModel_IReportComponent_">RomUtils.GetReportSectionFromComponent(IReportComponent)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.Rdl.Tools.CollectionExtensions.AddRange.html#GrapeCity_ActiveReports_Rdl_Tools_CollectionExtensions_AddRange__2___0_System_Collections_Generic_IEnumerable___1__">CollectionExtensions.AddRange&lt;TCollection, TItem&gt;(TCollection, IEnumerable&lt;TItem&gt;)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.Rdl.Tools.ReportItemExtensions.Clone.html#GrapeCity_ActiveReports_Rdl_Tools_ReportItemExtensions_Clone__1___0_">ReportItemExtensions.Clone&lt;TItem&gt;(TItem)</a>
  </div>

</div>
