Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / Row Class / Add Method
Example


In This Topic
    Add Method (Row)
    In This Topic
    Adds a new row or range of rows before this row or range of rows.
    Syntax
    'Declaration
     
    Public Sub Add() 
    'Usage
     
    Dim instance As Row
     
    instance.Add()
    public void Add()
    Example
    This example adds a row to the spreadsheet after every post back.
    FarPoint.Web.Spread.Row r;
    r = FpSpread1.ActiveSheetView.Rows[0];
    if(IsPostBack)
    {
         r.Add();
    }
    
    Dim r As FarPoint.Web.Spread.Row
    r = FpSpread1.ActiveSheetView.Rows(0)
    If IsPostBack Then
         r.Add()
    End If
    See Also