The following example shows how to customize the field header's context menu in the PivotGridControl.PopupMenuShowing event to add custom items to the built-in context menu.
- HeaderMenuHelper.cs (VB: HeaderMenuHelper.vb)
- MainWindow.xaml (VB: MainWindow.xaml)
- MainWindow.xaml.cs (VB: MainWindow.xaml.vb)
The event adds a new item to the fieldValuer field header's context menu and allows you to change the SummaryDisplayType value. The event is handled automatically if the field's AllowFieldSummaryTypeChanging or AllowFieldSummaryDisplayTypeChanging attached properties are true. The properties are defined in the HeaderMenuHelper class.
(you will be redirected to DevExpress.com to submit your response)