FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > DefaultSheetDataModel Class > AddColumn Method : AddColumn() Method |
'Declaration Public Overloads Sub AddColumn()
'Usage Dim instance As DefaultSheetDataModel instance.AddColumn()
public void AddColumn()
If you want to add more than one column, use the AddColumns method.
This method does not have an effect if the model is data bound.
private void Button1_Click(object sender, System.EventArgs e) { FarPoint.Web.Spread.Model.DefaultSheetDataModel dm = (FarPoint.Web.Spread.Model.DefaultSheetDataModel)FpSpread1.ActiveSheetView.DataModel; dm.AddColumn(); }
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim dm As FarPoint.Web.Spread.Model.DefaultSheetDataModel = CType(FpSpread1.ActiveSheetView.DataModel, FarPoint.Web.Spread.Model.DefaultSheetDataModel) dm.AddColumn() End Sub
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional