Back to Devexpress

GridMenuItemClickEventArgs.Handled Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridmenuitemclickeventargs-e6b90ed7.md

latest2.3 KB
Original Source

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.v25.2.dll

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

Declaration

csharp
public bool Handled { get; set; }
vb
Public Property Handled As Boolean

Property Value

TypeDescription
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

GridMenuItemClickEventArgs Class

GridMenuItemClickEventArgs Members

DevExpress.XtraGrid.Views.Grid Namespace