Spread ASP.NET 17
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread.Model Namespace / DefaultSheetDataModel Class / AddColumn Method / AddColumn(Int32) Method
Index of column at which to add a new column
Example


In This Topic
    AddColumn(Int32) Method
    In This Topic
    Adds a column to the data model at the specified position.
    Syntax
    'Declaration
     
    
    Public Overloads Sub AddColumn( _
       ByVal column As Integer _
    ) 
    'Usage
     
    
    Dim instance As DefaultSheetDataModel
    Dim column As Integer
     
    instance.AddColumn(column)
    public void AddColumn( 
       int column
    )

    Parameters

    column
    Index of column at which to add a new column
    Remarks

    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.

    Example
    This example shows the use of this method by adding a new column to the model in the click event of a button and placing it in front of the fourth column.
    See Also