Spread ASP.NET 6.0 Product Documentation
Changed Event
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > BaseSheetDataModel Class : Changed Event


Glossary Item Box

Occurs when the user makes a change to the model that affects the data of the sheet.

Syntax

Visual Basic (Declaration) 
Public Event Changed As SheetDataModelEventHandler
Visual Basic (Usage)Copy Code
Dim instance As BaseSheetDataModel
Dim handler As SheetDataModelEventHandler
 
AddHandler instance.Changed, handler
C# 
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.

PropertyDescription
Column Gets the column index.
ColumnCount Gets the number of columns.
Row Gets the row index.
RowCount Gets the number of rows.
Type Gets the event type.

Example

This example returns the next column with data.
C#Copy Code
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)
{
    Response.Write(e.Type.ToString()); 
}
Visual BasicCopy Code
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
    Response.Write(e.Type.ToString) 
End Sub

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.