'Usage Dim instance As DefaultSheetDataModel Dim column As Integer instance.AddColumn(column)
Parameters
- column
- Index of column at which to add a new column
'Usage Dim instance As DefaultSheetDataModel Dim column As Integer instance.AddColumn(column)
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(2); }
Private Sub Button1_Click(ByVal sender As System.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(2) End Sub