Spread Windows Forms 6.0 Product Documentation
Changed Event
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > ISheetDataModel Interface : Changed Event


Glossary Item Box

Occurs when the data model has changed.

Syntax

Visual Basic (Declaration) 
Event Changed As SheetDataModelEventHandler
Visual Basic (Usage)Copy Code
Dim instance As ISheetDataModel
Dim handler As SheetDataModelEventHandler
 
AddHandler instance.Changed, handler
C# 
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 raises the changed event.
C#Copy Code
FarPoint.Win.Spread.Model.ISheetDataModel isdm;
isdm = (FarPoint.Win.Spread.Model.ISheetDataModel)fpSpread1.ActiveSheet.Models.Data;
isdm.Changed += new FarPoint.Win.Spread.Model.SheetDataModelEventHandler(this.isdm_Changed);
isdm.ColumnCount = 4;
isdm.RowCount = 5;

private void isdm_Changed(object sender, FarPoint.Win.Spread.Model.SheetDataModelEventArgs e)
{
     label1.Text = "The Model has Changed!!";
}
Visual BasicCopy Code
Friend WithEvents isdm As FarPoint.Win.Spread.Model.ISheetDataModel
isdm = FpSpread1.ActiveSheet.Models.Data
isdm.ColumnCount = 4
isdm.RowCount = 5

Private Sub isdm_Changed(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.Model.SheetDataModelEventArgs) Handles isdm.Changed
     Label1.Text = "The Model has Changed!!!"
End Sub

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.