DataGrid.OnContextMenuOpening Method (ContextMenuEventArgs)

.NET Framework (current version)
 
System_CAPS_noteNote

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

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: