Spread for ASP.NET 11 Product Documentation
AddRows(Int32,Int32) Method
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > DefaultSheetDataModel Class : AddRows(Int32,Int32) Method
Row index at which to add new rows
Number of rows to add
Adds rows to the data model at the specified position.
Syntax
'Declaration
 
Public Sub AddRows( _
   ByVal row As Integer, _
   ByVal count As Integer _
) 
'Usage
 
Dim instance As DefaultSheetDataModel
Dim row As Integer
Dim count As Integer
 
instance.AddRows(row, count)
public void AddRows( 
   int row,
   int count
)

Parameters

row
Row index at which to add new rows
count
Number of rows to add
Exceptions
ExceptionDescription
Specified index of row is out of range; must be between zero and the number of columns
Specified number of rows is out of range; must be greater than zero
Example
This example adds two rows to the model.
FarPoint.Web.Spread.Model.DefaultSheetDataModel new FarPoint.Web.Spread.Model.DefaultSheetDataModel(); 
dataModel = (FarPoint.Web.Spread.Model.DefaultSheetDataModel)FpSpread1.ActiveSheetView.DataModel;
dataModel.AddRows(1, 2);
Dim dataModel As New FarPoint.Web.Spread.Model.DefaultSheetDataModel
dataModel = FpSpread1.ActiveSheetView.DataModel
dataModel.AddRows(1, 2)
See Also

Reference

DefaultSheetDataModel Class
DefaultSheetDataModel Members