# GrapeCity.ActiveReports.PageReportModel.Field

## Content

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



  <h1 id="GrapeCity_ActiveReports_PageReportModel_Field" data-uid="GrapeCity.ActiveReports.PageReportModel.Field" class="text-break">Field Class
</h1>
  <div class="markdown level0 summary"><p>Represents a Field element of a <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.DataSet.html">DataSet</a>, containing information about a field within the data model of the report.</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">Field</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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_Field_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Field : IValidateable</code></pre>
  </div>
  <h5 id="GrapeCity_ActiveReports_PageReportModel_Field_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>A Field must have either a <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Field.DataField.html#GrapeCity_ActiveReports_PageReportModel_Field_DataField">DataField</a> or <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Field.Value.html#GrapeCity_ActiveReports_PageReportModel_Field_Value">Value</a> property set, but not both.</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="GrapeCity_ActiveReports_PageReportModel_Field__ctor" data-uid="GrapeCity.ActiveReports.PageReportModel.Field.#ctor">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Field.-ctor.html#GrapeCity_ActiveReports_PageReportModel_Field__ctor">Field()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Field.html">Field</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Field__ctor_System_String_System_String_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_" data-uid="GrapeCity.ActiveReports.PageReportModel.Field.#ctor(System.String,System.String,GrapeCity.Enterprise.Data.Expressions.ExpressionInfo)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Field.-ctor.html#GrapeCity_ActiveReports_PageReportModel_Field__ctor_System_String_System_String_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_">Field(string, string, ExpressionInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Field.html">Field</a> class using a specified name, data field, and value.</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_Field_DataField" data-uid="GrapeCity.ActiveReports.PageReportModel.Field.DataField">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Field.DataField.html#GrapeCity_ActiveReports_PageReportModel_Field_DataField">DataField</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the field in the query.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Field_Name" data-uid="GrapeCity.ActiveReports.PageReportModel.Field.Name">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Field.Name.html#GrapeCity_ActiveReports_PageReportModel_Field_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name to use for the field within the report.
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Field_Value" data-uid="GrapeCity.ActiveReports.PageReportModel.Field.Value">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Field.Value.html#GrapeCity_ActiveReports_PageReportModel_Field_Value">Value</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets an expression that evaluates to the value of the field.
</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_Field_Validate_GrapeCity_ActiveReports_PageReportModel_ValidationContext_" data-uid="GrapeCity.ActiveReports.PageReportModel.Field.Validate(GrapeCity.ActiveReports.PageReportModel.ValidationContext)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Field.Validate.html#GrapeCity_ActiveReports_PageReportModel_Field_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.Field.html">Field</a> object.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <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>
