Spread Windows Forms 6.0 Product Documentation
EditModeOff Event
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : EditModeOff Event


Glossary Item Box

Occurs when edit mode is stopped.

Syntax

Visual Basic (Declaration) 
Public Event EditModeOff As EventHandler
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim handler As EventHandler
 
AddHandler instance.EditModeOff, handler
C# 
public event EventHandler EditModeOff

Remarks

This event is raised by the OnEditModeOff method when edit mode is stopped.

For a discussion of edit mode and related properties, refer to Understanding Edit Mode.

This event is raised before the cell editor control (FpSpread.EditingControl) is removed, and thus is useful for detaching event handlers for the cell editor control or the cell type object.

Example

This example raises the EditModeOff event when the user leaves edit mode.
C#Copy Code
Label1.Text = "Put a cell into edit mode then leave edit mode to fire the EditModeOff event";

private void fpSpread1_EditModeOff(object sender, System.EventArgs e)
{
     ListBox1.Items.Add("EditModeOff event fired!");
}
Visual BasicCopy Code
Label1.Text = "Put a cell into edit mode then leave edit mode to fire the EditModeOff event"

Private Sub FpSpread1_EditModeOff(ByVal sender As Object, ByVal e As System.EventArgs) Handles FpSpread1.EditModeOff
     ListBox1.Items.Add("EditModeOff event fired!")
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.