# C1.Win.FlexGrid.Row.Top

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_Row_Top_" data-uid="C1.Win.FlexGrid.Row.Top*">Top Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_Row_Top_" data-uid="C1.Win.FlexGrid.Row.Top*"></a>
<h4 id="C1_Win_FlexGrid_Row_Top" data-uid="C1.Win.FlexGrid.Row.Top">Top</h4>
<div class="markdown level1 summary"><p>Gets the position of the top of this row, in pixels, relative to the grid.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int Top { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public ReadOnly Property Top As Integer</code></pre>
</div>
<h5 id="C1_Win_FlexGrid_Row_Top_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The value returned is the sum of row heights from the top of the grid until this row, and 
does not account for the scroll position. To account for the scroll position, this value should
be adjusted using the grid's <a class="xref" href="C1.Win.FlexGrid.Util.BaseControls.ScrollableControl.ScrollPosition.html#C1_Win_FlexGrid_Util_BaseControls_ScrollableControl_ScrollPosition">ScrollPosition</a> 
property.</p>
<p>To retrieve the size and position of a cell, use the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.GetCellRect.html#C1_Win_FlexGrid_C1FlexGridBase_GetCellRect_System_Int32_System_Int32_System_Boolean_">GetCellRect(int, int, bool)</a> method.</p>
</div>
</div>
