# C1.Win.FlexGrid.Row.DataIndex

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_Row_DataIndex_" data-uid="C1.Win.FlexGrid.Row.DataIndex*">DataIndex Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_Row_DataIndex_" data-uid="C1.Win.FlexGrid.Row.DataIndex*"></a>
<h4 id="C1_Win_FlexGrid_Row_DataIndex" data-uid="C1.Win.FlexGrid.Row.DataIndex">DataIndex</h4>
<div class="markdown level1 summary"><p>Gets the index of this row in the <a class="xref" href="C1.Win.FlexGrid.RowCollection.html">RowCollection</a> collection, excluding fixed and node rows.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int DataIndex { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public ReadOnly Property DataIndex As Integer</code></pre>
</div>
<h5 id="C1_Win_FlexGrid_Row_DataIndex_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This property returns -1 if the row is a fixed or node row.</p>
<p>If the grid is bound to a data source, the return value can be used as an indexer into the grid's data 
source to obtain a reference to the item bound to the row.</p>
<p>You can also obtain the underlying data object directly using the row's <a class="xref" href="C1.Win.FlexGrid.Row.DataSource.html#C1_Win_FlexGrid_Row_DataSource">DataSource</a> property.</p>
</div>
</div>
