Spread Windows Forms 9.0 Product Documentation
Changed Event (ISheetDataModel)
Example 


Occurs when the data model has changed.
Syntax
'Declaration
 
Event Changed As SheetDataModelEventHandler
'Usage
 
Dim instance As ISheetDataModel
Dim handler As SheetDataModelEventHandler
 
AddHandler instance.Changed, handler
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
ColumnGets the column index.  
ColumnCountGets the number of columns.  
RowGets the row index.  
RowCountGets the number of rows.  
TypeGets the event type.  
Example
This example raises the changed event.
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!!";
}
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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

ISheetDataModel Interface
ISheetDataModel Members

 

 


Copyright © GrapeCity, inc. All rights reserved.