DataGridViewCell.KeyEntersEditMode Method (KeyEventArgs)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Determines if edit mode should be started based on the given key.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public virtual bool KeyEntersEditMode(
	KeyEventArgs e


Type: System.Windows.Forms.KeyEventArgs

A KeyEventArgs that represents the key that was pressed.

Return Value

Type: System.Boolean

true if edit mode should be started; otherwise, false. The default is false.

Override this method to create a custom cell that is editable.

.NET Framework
Available since 2.0
Return to top