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

Column Header Context Menu

The column header context menu allows end-users to change the column’s visibility, apply or clear sorting against its values, invoke the customization form, change the visibility of the footer and group footers, etc. The column header context menu can be invoked by right-clicking the column header.

VCL Tree List: A Column Header Context Menu

The table below lists the main properties that affect the menu’s appearance and behavior:

Availability

The TreeList control’s PopupMenus.ColumnHeaderMenu.UseBuiltInMenu option.

Contents

To invoke a custom context menu at runtime, specify the menu via the TreeList control’s PopupMenus.ColumnHeaderMenu.PopupMenu property and set the PopupMenus.ColumnHeaderMenu.UseBuiltInMenu property to False. Otherwise, the built-in context menu will be displayed.

Use the TreeList control’s PopupMenus.ColumnHeaderMenu.Items property to toggle the visibility of specific menu items in the built-in context menu.

Handle the TreeList control’s PopupMenus.ColumnHeaderMenu.OnPopup event to customize the contents of the invoked context menu.

Behavior

Handle the TreeList control’s PopupMenus.ColumnHeaderMenu.OnClick event to respond to clicks on items within the built-in context menu.

See Also