GridMenuItemClickEventArgs.SummaryItem Property
Gets a summary item object corresponding to the footer cell whose menu’s item was clicked.
Namespace: DevExpress.XtraGrid.Views.Grid
Assembly: DevExpress.XtraGrid.v24.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
#Declaration
public GridSummaryItem SummaryItem { get; }
#Property Value
Type | Description |
---|---|
Grid |
A Grid |
#Remarks
This property is in effect only when the GridMenuItemClickEventArgs.MenuType property value is GridMenuType.Summary. If a View footer’s cell was clicked to activate the context menu, the SummaryItem property returns the summary item specified by the corresponding column’s GridColumn.SummaryItem property. If a group footer’s cell was right-clicked to activate the menu, the property returns an appropriate summary item from the View’s GridView.GroupSummary collection.
Read the SummaryItem object’s properties to determine the previous summary item settings. Note that this item’s settings affect the summary only if the GridMenuItemClickEventArgs.Handled event parameter is set to true. Otherwise, changes to the summary item object are ignored and summary is specified by the GridMenuItemClickEventArgs.SummaryType and GridMenuItemClickEventArgs.SummaryFormat parameter values.