Spread Windows Forms 12.0 Product Documentation
AddRows Method (SheetView)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : AddRows Method
Row index where the new rows are to be added
Number of rows to be added
Adds a row or rows to the data model for a sheet.
Syntax
'Declaration
 
Public Overridable Sub AddRows( _
   ByVal row As Integer, _
   ByVal count As Integer _
) 
'Usage
 
Dim instance As SheetView
Dim row As Integer
Dim count As Integer
 
instance.AddRows(row, count)
public virtual void AddRows( 
   int row,
   int count
)

Parameters

row
Row index where the new rows are to be added
count
Number of rows to be added
Example
This example adds two rows to the active sheet.
DialogResult dlg;
fpSpread1.ActiveSheet.Rows.Count = 4;
dlg = MessageBox.Show("Do you want to add some rows?", "AddRows", MessageBoxButtons.YesNo);
if (dlg == DialogResult.Yes)
{
    fpSpread1.ActiveSheet.AddRows(0, 2);
}
Dim dlg As DialogResult
FpSpread1.ActiveSheet.Rows.Count = 4
dlg = MessageBox.Show("Do you want to add some rows?", "AddRows", MessageBoxButtons.YesNo)
If dlg = DialogResult.Yes Then
    FpSpread1.ActiveSheet.AddRows(0, 2)
End If
See Also

Reference

SheetView Class
SheetView Members

User-Task Documentation

Adding a Row or Column