Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataGridCell.OnPreviewKeyDown Method (KeyEventArgs)

.NET Framework (current version)
 

Reports that a key was pressed.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

protected override void OnPreviewKeyDown(
	KeyEventArgs e
)

Parameters

e
Type: System.Windows.Input.KeyEventArgs

The data for the event.

This method passes keyboard input to the Column that contains the cell. Each column handles the input in a way that is appropriate for the column type.

.NET Framework
Available since 4.5
Return to top
Show:
© 2017 Microsoft