DataGridViewTextBoxEditingControl.EditingControlWantsInputKey Method (Keys, Boolean)


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

Determines whether the specified key is a regular input key that the editing control should process or a special key that the DataGridView should process.

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

public virtual bool EditingControlWantsInputKey(
	Keys keyData,
	bool dataGridViewWantsInputKey


Type: System.Windows.Forms.Keys

A Keys that represents the key that was pressed.

Type: System.Boolean

true when the DataGridView wants to process the keyData; otherwise, false.

Return Value

Type: System.Boolean

true if the specified key is a regular input key that should be handled by the editing control; otherwise, false.

.NET Framework
Available since 2.0
Return to top