# C1.Win.FlexGrid.C1FlexGridBase.Row

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_C1FlexGridBase_Row_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Row*">Row Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_C1FlexGridBase_Row_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Row*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_Row" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Row">Row</h4>
<div class="markdown level1 summary"><p>Gets or sets the row that contains the cursor.</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 int Row { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Browsable(False)&gt;
Public Property Row As Integer</code></pre>
</div>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_Row_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Use the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Row.html#C1_Win_FlexGrid_C1FlexGridBase_Row">Row</a> and <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Col.html#C1_Win_FlexGrid_C1FlexGridBase_Col">Col</a> properties to make a cell current or to find 
out which row or column contains the current cell. Columns and rows are 
numbered from zero, beginning at the top for rows and at the left for columns.</p>
<p>The <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Row.html#C1_Win_FlexGrid_C1FlexGridBase_Row">Row</a> property may be set to -1 to hide the selection, to a value
between zero and Rows.Fixed-1 to select a cell in a fixed row, or to a value between 
Rows.Fixed and Rows.Count-1 to select a cell in a scrollable row.</p>
<p>Setting the Row and Col properties automatically collapses the selection to a 
single cell, resetting the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.RowSel.html#C1_Win_FlexGrid_C1FlexGridBase_RowSel">RowSel</a> and <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.ColSel.html#C1_Win_FlexGrid_C1FlexGridBase_ColSel">ColSel</a> properties. 
To specify a block selection, you must set Row and Col, then RowSel and ColSel. Alternatively,
you can use the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Select.html#C1_Win_FlexGrid_C1FlexGridBase_Select_C1_Win_FlexGrid_CellRange_System_Boolean_">Select(CellRange, bool)</a> method to select an arbitrary range with a single statement.</p>
<p>Setting the Row and Col properties does not ensure that the current cell is visible.
To do that, use the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.ShowCell.html#C1_Win_FlexGrid_C1FlexGridBase_ShowCell_System_Int32_System_Int32_">ShowCell(int, int)</a> method.</p>
</div>
</div>
