# FarPoint.Win.Spread.SheetView.MoveRow

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_SheetView_MoveRow_" data-uid="FarPoint.Win.Spread.SheetView.MoveRow*">MoveRow Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_SheetView_MoveRow_" data-uid="FarPoint.Win.Spread.SheetView.MoveRow*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_MoveRow_System_Int32_System_Int32_System_Int32_System_Boolean_" data-uid="FarPoint.Win.Spread.SheetView.MoveRow(System.Int32,System.Int32,System.Int32,System.Boolean)">MoveRow(int, int, int, bool)</h4>
<div class="markdown level1 summary"><p>Moves the specified row from its current index to the specified index,
and shifts each row in between and the destination row one
row in the direction of the specified row.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void MoveRow(int fromIndex, int toIndex, int rowCount, bool moveContent)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub MoveRow(fromIndex As Integer, toIndex As Integer, rowCount As Integer, moveContent As Boolean)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">fromIndex</span></td>
      <td><p>Current index of the row to move</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">toIndex</span></td>
      <td><p>New index of the row after the move</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowCount</span></td>
      <td><p>Row count</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">moveContent</span></td>
      <td><p>Whether to move the content</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_MoveRow_" data-uid="FarPoint.Win.Spread.SheetView.MoveRow*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_MoveRow_System_Int32_System_Int32_System_Boolean_" data-uid="FarPoint.Win.Spread.SheetView.MoveRow(System.Int32,System.Int32,System.Boolean)">MoveRow(int, int, bool)</h4>
<div class="markdown level1 summary"><p>Moves the specified row from its current index to the specified index,
and shifts each row in between and the destination row one
row in the direction of the specified row.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void MoveRow(int fromIndex, int toIndex, bool moveContent)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub MoveRow(fromIndex As Integer, toIndex As Integer, moveContent As Boolean)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">fromIndex</span></td>
      <td><p>Current index of the row to move</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">toIndex</span></td>
      <td><p>New index of the row after the move</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">moveContent</span></td>
      <td><p>Whether to move content</p>
</td>
    </tr>
  </tbody>
</table>
</div>
