Back to Devexpress

GridMenuEventHandler Delegate

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-2a8a1542.md

latest2.1 KB
Original Source

GridMenuEventHandler Delegate

OBSOLETE

You should use the 'PopupMenuShowingEventHandler' instead

Represents a method that will handle the GridView.PopupMenuShowing event.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("You should use the 'PopupMenuShowingEventHandler' instead", false)]
public delegate void GridMenuEventHandler(
    object sender,
    GridMenuEventArgs e
);
vb
<Obsolete("You should use the 'PopupMenuShowingEventHandler' instead", False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Delegate Sub GridMenuEventHandler(
    sender As Object,
    e As GridMenuEventArgs
)

Parameters

NameTypeDescription
senderObject

The event sender. Identifies the View that raised the event.

| | e | GridMenuEventArgs |

A GridMenuEventArgs object that contains event data.

|

Remarks

When you create a GridMenuEventHandler delegate, you identify the method that will handle the corresponding event. To associate an event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate.

See Also

DevExpress.XtraGrid.Views.Grid Namespace