Spread Windows Forms 7.0 Product Documentation
MoveRow(Int32,Int32,Int32,Boolean) Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class > MoveRow Method : MoveRow(Int32,Int32,Int32,Boolean) Method


fromIndex
Current index of the row to move
toIndex
New index of the row after the move
rowCount
Row count
moveContent
Whether to move the content

Glossary Item Box

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.

Syntax

Visual Basic (Declaration) 
Public Overloads Overridable Sub MoveRow( _
   ByVal fromIndex As Integer, _
   ByVal toIndex As Integer, _
   ByVal rowCount As Integer, _
   ByVal moveContent As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim fromIndex As Integer
Dim toIndex As Integer
Dim rowCount As Integer
Dim moveContent As Boolean
 
instance.MoveRow(fromIndex, toIndex, rowCount, moveContent)
C# 
public virtual void MoveRow( 
   int fromIndex,
   int toIndex,
   int rowCount,
   bool moveContent
)

Parameters

fromIndex
Current index of the row to move
toIndex
New index of the row after the move
rowCount
Row count
moveContent
Whether to move the content

Remarks

The MultipleRowMovingException is raised if there is an error with this method.

Example

This example moves multiple rows.
C#Copy Code
fpSpread1.Sheets[0].MoveRow(0,5,2,true);
Visual BasicCopy Code
FpSpread1.Sheets(0).MoveRow(0, 5, 2, True)

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.