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


Glossary Item Box

Occurs when edit mode is started.

Syntax

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

Remarks

This event is raised by the OnEditModeOn method when edit mode is started.

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

This event is fired after the cell editor is initialized for editing the cell, and thus is useful for attaching event handlers to the cell editor control (FpSpread.EditingControl).

Example

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

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

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