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

ASPxGridViewContextMenuItemVisibilityEventArgs.SetEnabled(GridViewContextMenuItem, Int32, Boolean) Method

Allows you to set the availability of a particular item based on the right-clicked row.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

public void SetEnabled(
    GridViewContextMenuItem item,
    int visibleIndex,
    bool enabled
)

Parameters

Name Type Description
item GridViewContextMenuItem

A GridViewContextMenuItem object that is the processed item.

visibleIndex Int32

An integer value specifying the right-clicked row’s visible index.

enabled Boolean

true to enable the item; false to disable it.

See Also