Spread WPF Documentation
EnterCell Event (GcSpreadSheet)
Example 


GrapeCity.Windows.SpreadSheet.UI Namespace > GcSpreadSheet Class : EnterCell Event
Occurs when the user enters a cell.
Syntax
'Declaration
 
Public Event EnterCell As System.EventHandler(Of EnterCellEventArgs)
'Usage
 
Dim instance As GcSpreadSheet
Dim handler As System.EventHandler(Of EnterCellEventArgs)
 
AddHandler instance.EnterCell, handler
public event System.EventHandler<EnterCellEventArgs> 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
Gets the row index of the cell being entered.  
Gets the column index of the cell being entered.  
Example
This example uses the EnterCell event.
void gcSpread1_EnterCell(object sender, EnterCellEventArgs e)
{
    gcSpreadSheet1.View.StartCellEditing(false);
}
Private Sub GcSpreadSheet1_EnterCell(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.EnterCellEventArgs)
        GcSpreadSheet1.View.StartCellEditing(False)
End Sub
See Also