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


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > DefaultSheetDataModel Class : AddRows Method

Adds rows to the data model.

Overload List
OverloadDescription
Adds rows to the data model at the specified position.  
Example
This example adds five new columns and seven new rows to the data model.
FarPoint.Win.Spread.Model.DefaultSheetDataModel dataModel = new FarPoint.Win.Spread.Model.DefaultSheetDataModel(10, 10);
dataModel.AddColumns(2, 5);
dataModel.AddRows(2, 7);
fpSpread1.ActiveSheet.Models.Data = dataModel;
Dim dataModel As New FarPoint.Win.Spread.Model.DefaultSheetDataModel(10, 10)
dataModel.AddColumns(2, 5)
dataModel.AddRows(2, 7)
FpSpread1.ActiveSheet.Models.Data = dataModel
See Also

Reference

DefaultSheetDataModel Class
DefaultSheetDataModel Members