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.

DataGrid.OnContextMenuOpening Method (ContextMenuEventArgs)

.NET Framework (current version)
 

Selects a cell if its context menu is opened.

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

protected override void OnContextMenuOpening(
	ContextMenuEventArgs e
)

Parameters

e
Type: System.Windows.Controls.ContextMenuEventArgs

The item whose context menu was opened.

This method is called when a context menu is opened on an unselected cell or row.

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