EditingControlWantsInputKey Method

DataGridViewTextBoxEditingControl.EditingControlWantsInputKey Method (Keys, Boolean)

 

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
)

Parameters

keyData
Type: System.Windows.Forms.Keys

A Keys that represents the key that was pressed.

dataGridViewWantsInputKey
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
Show:
© 2016 Microsoft