Spread Windows Forms 10.0 Product Documentation
MoveRow(Int32,Int32,Boolean) Method
Example 


Current index of the row to move
New index of the row after the move
Whether to move content
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
'Declaration
 
Public Overloads Overridable Sub MoveRow( _
   ByVal fromIndex As Integer, _
   ByVal toIndex As Integer, _
   ByVal moveContent As Boolean _
) 
'Usage
 
Dim instance As SheetView
Dim fromIndex As Integer
Dim toIndex As Integer
Dim moveContent As Boolean
 
instance.MoveRow(fromIndex, toIndex, moveContent)
public virtual void MoveRow( 
   int fromIndex,
   int toIndex,
   bool moveContent
)

Parameters

fromIndex
Current index of the row to move
toIndex
New index of the row after the move
moveContent
Whether to move content
Example
This example moves a row.
fpSpread1.Sheets[0].MoveRow(0,5,true);
FpSpread1.Sheets(0).MoveRow(0, 5, True)
Requirements

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

See Also

Reference

SheetView Class
SheetView Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.