Skip to main content
A newer version of this page is available. .

GridMenuItemClickEventArgs.MenuType Property

Gets the type of the context menu whose item was clicked.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v19.1.dll

Declaration

public GridMenuType MenuType { get; }

Property Value

Type Description
GridMenuType

A GridMenuType enumeration value specifying the type of the menu whose item was clicked.

Available values:

Name Description
User

A custom context menu.

Summary

The footer cell context menu invoked when right-clicking within a summary footer.

Column

The column header context menu.

Group

The context menu invoked when right-clicking the group panel.

Row

The initially empty context menu that is created when you right-click on a data or group row.

When you right-click within a row or group row, the Data Grid creates an empty menu and fires the GridView.PopupMenuShowing event (the event’s PopupMenuShowingEventArgs.MenuType parameter is set to Row). If you leave this menu intact (empty), it will not be displayed after your PopupMenuShowing event handler is complete. To display the menu, add custom menu items using the e.Menu.Items.Add method.

AutoFilter

The auto filter row menu which allows you to select a comparison operator.

See Also