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

GridMenuEventArgs(GridMenuType, GridViewMenu, Point, Boolean) Constructor

In This Article

Initializes a new instance of the GridMenuEventArgs class with the specified settings.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

public GridMenuEventArgs(
    GridMenuType menuType,
    GridViewMenu menu,
    Point point,
    bool allow
)

#Parameters

Name Type Description
menuType GridMenuType

A GridMenuType enumeration value specifying the type of the invoked Grid View’s context menu. This value is assigned to the MenuType property.

menu DevExpress.XtraGrid.Menu.GridViewMenu

A DevExpress.XtraGrid.Menu.GridViewMenu object which represents the Grid View’s context menu. This value is assigned to the Menu property.

point Point

A Point structure which specifies the point where an end-user has right-clicked to invoke the context menu. This value is assigned to the Point property.

allow Boolean

true to display the context menu; otherwise, false. This value is assigned to the Allow property.

See Also