Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

EditorContainer.EditorKeyPress Event

Occurs when a character key is pressed within an in-place editor that belongs to the container control.

Namespace: DevExpress.XtraEditors.Container

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("ContainerEvents")]
public event KeyPressEventHandler EditorKeyPress

#Event Data

The EditorKeyPress event's data class is KeyPressEventArgs. The following properties provide information specific to this event:

Property Description
Handled Gets or sets a value indicating whether the KeyPress event was handled.
KeyChar Gets or sets the character corresponding to the key pressed.

#Remarks

Unlike the EditorContainer.EditorKeyDown event, the EditorKeyPress event is only raised in response to pressing a character key. Note that pressing a character key raises both the EditorContainer.EditorKeyDown and EditorKeyPress events. If you continue to depress the key, the events will be triggered repeatedly with a short interval

After a key is released, the EditorContainer.EditorKeyUp event is fired.

Key press events are fired in the following order:

See Also