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

GridMenuItemClickEventArgs.Handled Property

Gets or sets a value specifying whether default menu item click processing is required after event handler execution.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.2.dll

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

#Declaration

public bool Handled { get; set; }

#Property Value

Type Description
Boolean

true if default event processing is not required; otherwise, false.

#Remarks

You can prohibit default actions performed when clicking a menu item by setting the Handled property to true. In this case, you are responsible for implementing a proper menu item click response within the GridView.GridMenuItemClick event handler.

When handling footer cell item clicks, the default item click handling involves setting a corresponding summary item’s properties as specified by the GridMenuItemClickEventArgs.SummaryType and GridMenuItemClickEventArgs.SummaryFormat event parameters. Thus, you are allowed to customize the default behavior and do not necessarily need to set the GridMenuItemClickEventArgs.Handled property to true to change default item click processing.

See Also