Spread Windows Forms 11.0 Product Documentation
AddColumn() Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > DefaultSheetDataModel Class > AddColumn Method : AddColumn() Method
Adds a column to the data model.
Syntax
'Declaration
 
Public Overloads Sub AddColumn() 
'Usage
 
Dim instance As DefaultSheetDataModel
 
instance.AddColumn()
public void AddColumn()
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