# GrapeCity.ActiveReports.Data.ListDataSource.GetValue

## Content

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



<h1 id="GrapeCity_ActiveReports_Data_ListDataSource_GetValue_" data-uid="GrapeCity.ActiveReports.Data.ListDataSource.GetValue*">GetValue Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Data_ListDataSource_GetValue_" data-uid="GrapeCity.ActiveReports.Data.ListDataSource.GetValue*"></a>
<h4 id="GrapeCity_ActiveReports_Data_ListDataSource_GetValue_System_Int32_" data-uid="GrapeCity.ActiveReports.Data.ListDataSource.GetValue(System.Int32)">GetValue(int)</h4>
<div class="markdown level1 summary"><p>Returns the value at given index for the property.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public object GetValue(int i)</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.int32">int</a></td>
      <td><span class="parametername">i</span></td>
      <td><p>Index of property in the field collection</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><p>Value of teh property at the specified index</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.idatarecord.getvalue">IDataRecord.GetValue(int)</a></div>


<a id="GrapeCity_ActiveReports_Data_ListDataSource_GetValue_" data-uid="GrapeCity.ActiveReports.Data.ListDataSource.GetValue*"></a>
<h4 id="GrapeCity_ActiveReports_Data_ListDataSource_GetValue_System_String_System_Int32_" data-uid="GrapeCity.ActiveReports.Data.ListDataSource.GetValue(System.String,System.Int32)">GetValue(string, int)</h4>
<div class="markdown level1 summary"><p>Gets Value for data fields for .Notations</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public object GetValue(string fieldName, int ordinal)</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">fieldName</span></td>
      <td><p>Field Name of teh format Field1.Field2 and so on</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">ordinal</span></td>
      <td><p>Cached ordinal</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="GrapeCity.ActiveReports.Data.IListDataSource.GetValue.html#GrapeCity_ActiveReports_Data_IListDataSource_GetValue_System_String_System_Int32_">IListDataSource.GetValue(string, int)</a></div>
</div>
