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


Glossary Item Box

Occurs when the user enters a cell.

Syntax

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

Event Data

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

PropertyDescription
Column Gets the column index of the cell being entered.
Row Gets the row index of the cell being entered.
View Gets the view that contains the cell being entered.

Remarks

This event is raised by the OnEnterCell method when the user enters a cell.

Setting the active cell programatically does not raise the event. It is raised only when the user interacts and changes cells.

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

Example

This example raises the event.
C#Copy Code
Label1.Text = "Click on a different cell to fire the EnterCell event";

private void fpSpread1_EnterCell(object sender, FarPoint.Win.Spread.EnterCellEventArgs e)
{
     ListBox1.Items.Add("EnterCell event fired!");
}
Visual BasicCopy Code
Label1.Text = "Click on a different cell to fire the EnterCell event"

Private Sub FpSpread1_EnterCell(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.EnterCellEventArgs) Handles FpSpread1.EnterCell
     ListBox1.Items.Add("EnterCell 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.