Spread Windows Forms 11.0 Product Documentation
EditChange Event
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : EditChange Event
Occurs when the user changes the text in a cell in edit mode.
Syntax
'Declaration
 
Public Event EditChange As EditorNotifyEventHandler
'Usage
 
Dim instance As FpSpread
Dim handler As EditorNotifyEventHandler
 
AddHandler instance.EditChange, handler
public event EditorNotifyEventHandler EditChange
Event Data

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

PropertyDescription
Gets the column index of the cell with the editor that raised the event.  
Gets the Control object that raises the event.  
Gets the row index of the cell with the editor that raised the event.  
Gets the view that contains the cell with the editor that raised the event.  
Remarks

This event is raised by the OnEditChange method when the user changes the text in a cell in edit mode.

For more details on the individual event arguments, refer to EditorNotifyEventArgs members.

Example
This example raises the EditChange event when the user changes the text in a cell when in Edit mode.
fpSpread1.ActiveSheet.SetValue(0, 0, "ChangeMe");
Label1.Text = "Put the cell in edit mode and change the text.  This will fire the event";

private void fpSpread1_EditChange(object sender, FarPoint.Win.Spread.EditorNotifyEventArgs e)
{
     ListBox1.Items.Add("EditChange event fired!");
}
FpSpread1.ActiveSheet.SetValue(0, 0, "ChangeMe")
Label1.Text = "Put the cell in edit mode and change the text.  This will fire the event"

Private Sub FpSpread1_EditChange(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.EditorNotifyEventArgs) Handles FpSpread1.EditChange
     ListBox1.Items.Add("EditChange event fired!")
End Sub
See Also