Occurs when the user makes a change to the model that affects the data of the sheet.
Syntax
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.
Property | Description |
---|
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. |
Remarks
Example
This example raises the Changed event for the model and displays that the event has fired.
C# | Copy Code |
---|
private void menuItem1_Click(object sender, System.EventArgs e)
{
model = (FarPoint.Win.Spread.Model.DefaultSheetDataModel)fpSpread1.ActiveSheet.Models.Data;
model.ColumnCount = 5;
}
private void fpSpread1_DataModelChanged(object sender, FarPoint.Win.Spread.Model.SheetDataModelEventArgs e)
{
listBox1.Items.Add("Changed Event Fired");
} |
Visual Basic | Copy Code |
---|
Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem1.Click
model = FpSpread1.ActiveSheet.Models.Data
model.ColumnCount = 5
End Sub
Private Sub FpSpread1_DataModelChanged(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.Model.SheetDataModelEventArgs)
Handles model.Changed
ListBox1.Items.Add("Changed Event Fired")
End Sub |
Requirements
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8
See Also