Spread ASP.NET 15
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread.Model Namespace / BaseSheetDataModel Class / Changed Event

In This Topic
    Changed Event (BaseSheetDataModel)
    In This Topic
    Occurs when the user makes a change to the model that affects the data of the sheet.
    Public Event Changed As SheetDataModelEventHandler
    Dim instance As BaseSheetDataModel
    Dim handler As SheetDataModelEventHandler
    AddHandler instance.Changed, handler
    public event SheetDataModelEventHandler Changed
    Event Data

    The event handler receives an argument of type SheetDataModelEventArgs containing data related to this event. The following SheetDataModelEventArgs properties provide information specific to this event.

    Gets the column index.  
    Gets the number of columns.  
    Gets the row index.  
    Gets the number of rows.  
    Gets the event type.  
    This example returns the next column with data.
    FarPoint.Web.Spread.Model.BaseSheetDataModel bdm;
    bdm = (FarPoint.Web.Spread.Model.BaseSheetDataModel)FpSpread1.ActiveSheetView.DataModel;
    bdm.Changed +=new FarPoint.Web.Spread.Model.SheetDataModelEventHandler(bdm_Changed);
    bdm.ColumnCount = 5;
    private void bdm_Changed(object sender, FarPoint.Web.Spread.Model.SheetDataModelEventArgs e)
    Dim WithEvents bdm As FarPoint.web.Spread.Model.BaseSheetDataModel
    bdm = FpSpread1.ActiveSheetView.DataModel
    bdm.ColumnCount = 5
    Private Sub bdm_Changed(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.Model.SheetDataModelEventArgs) Handles bdm.Changed
    End Sub
    See Also