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.
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. |