# C1.Report.DataSource.Recordset

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Report_DataSource_Recordset_" data-uid="C1.Report.DataSource.Recordset*">Recordset Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Report_DataSource_Recordset_" data-uid="C1.Report.DataSource.Recordset*"></a>
<h4 id="C1_Report_DataSource_Recordset" data-uid="C1.Report.DataSource.Recordset">Recordset</h4>
<div class="markdown level1 summary"><p>Sets or gets the data source object that provides data to the report.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
public object Recordset { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Browsable(False)&gt;
Public Property Recordset As Object</code></pre>
</div>
<h5 id="C1_Report_DataSource_Recordset_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Usually, the control creates a data object based on the value of the 
<a class="xref" href="C1.Report.DataSource.ConnectionString.html#C1_Report_DataSource_ConnectionString">ConnectionString</a> and <a class="xref" href="C1.Report.DataSource.RecordSource.html#C1_Report_DataSource_RecordSource">RecordSource</a> properties, and uses that object 
as the report data source.</p>
<p>Alternatively, you may want to create the data source object yourself, and assign it to 
the control. You can do that by assigning your data source object to the <b>Recordset</b>
property.</p>
<returns>
You can assign objects of the following types to the <a class="xref" href="C1.Report.DataSource.Recordset.html#C1_Report_DataSource_Recordset">Recordset</a> property:
(1) <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.datatable">DataTable</a> objects, (2) <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.dataview">DataView</a> objects, or (3) any 
object that implements the <a class="xref" href="C1.Report.IC1FlexReportRecordset.html">IC1FlexReportRecordset</a> or <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a> interface.
</returns>
</div>
</div>
