Spread Windows Forms 11.0 Product Documentation
AddRow() Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > DefaultSheetDataModel Class > AddRow Method : AddRow() Method

Adds a row to the data model.

Syntax
'Declaration
 
Public Overloads Sub AddRow() 
'Usage
 
Dim instance As DefaultSheetDataModel
 
instance.AddRow()
public void AddRow()
Example
This example adds a new column and a new row to the data model.
FarPoint.Win.Spread.Model.DefaultSheetDataModel dataModel = new FarPoint.Win.Spread.Model.DefaultSheetDataModel(5, 5);
dataModel.AddColumn();
dataModel.AddRow();
fpSpread1.ActiveSheet.Models.Data = dataModel;
Dim dataModel As New FarPoint.Win.Spread.Model.DefaultSheetDataModel(5, 5)
dataModel.AddColumn()
dataModel.AddRow()
FpSpread1.ActiveSheet.Models.Data = dataModel
See Also

Reference

DefaultSheetDataModel Class
DefaultSheetDataModel Members
Overload List