GridMenuEventArgs(GridMenuType, GridViewMenu, GridHitInfo, Boolean) Constructor

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

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v20.2.dll

Declaration

public GridMenuEventArgs(
    GridMenuType menuType,
    GridViewMenu menu,
    GridHitInfo hitInfo,
    bool allow
)
Public Sub New(
    menuType As GridMenuType,
    menu As GridViewMenu,
    hitInfo As GridHitInfo,
    allow As Boolean
)

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.

hitInfo GridHitInfo

A GridHitInfo object which contains information about the View elements located at the point where an end-user has right-clicked to invoke the context menu. This value is assigned to the HitInfo property.

allow Boolean

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

See Also