# C1.Win.FlexGrid.Row.DataSource

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_Row_DataSource_" data-uid="C1.Win.FlexGrid.Row.DataSource*">DataSource Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_Row_DataSource_" data-uid="C1.Win.FlexGrid.Row.DataSource*"></a>
<h4 id="C1_Win_FlexGrid_Row_DataSource" data-uid="C1.Win.FlexGrid.Row.DataSource">DataSource</h4>
<div class="markdown level1 summary"><p>Gets the object that provides data for this row.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public object DataSource { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public ReadOnly Property DataSource As Object</code></pre>
</div>
<h5 id="C1_Win_FlexGrid_Row_DataSource_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The type of object returned depends on the type of DataSource assigned to the grid. For example, 
if the grid is bound to a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.dataview">DataView</a> object, then this property will return the 
specific <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.datarowview">DataRowView</a> object that is bound to this row.</p>
<p>This property returns null if the grid is unbound, or if the row is a fixed or node row that doesn't 
correspond to any objects in the grid's data source.</p>
<p>For an example, see the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.GetUnboundValue.html">GetUnboundValue</a> event.</p>
</div>
</div>
