Using Edit Mode Always

You can set the cell to always be in edit mode when the user clicks on it. Normally the user types or double-clicks before the cell goes into edit mode.

Set the StartCellEditing method in the EnterCell event to cause the cell to go into edit mode as soon as the user clicks on or uses tab or enter to move to the cell.

Using Code

This example starts cell editing.

CS
Copy Code
private void gcSpreadSheet1_EnterCell(object sender, GrapeCity.Xaml.SpreadSheet.UI.EnterCellEventArgs e)
        {
            gcSpreadSheet1.View.StartCellEditing(false);
        }
VB
Copy Code
Private Sub gcSpreadSheet1_EnterCell(sender As Object, e As GrapeCity.Xaml.SpreadSheet.UI.EnterCellEventArgs) Handles gcSpreadSheet1.EnterCell
        gcSpreadSheet1.View.StartCellEditing(False)
    End Sub
See Also

 

 


Copyright © GrapeCity, inc. All rights reserved.