Skip to main content
All docs
V24.2

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

TreeList.ShowContextMenu() Method

Displays a node context menu for the focused cell.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

public bool ShowContextMenu()

#Returns

Type Description
Boolean

true if the context menu was displayed; otherwise, false.

#Remarks

The ShowContextMenu method scrolls the TreeList horizontally and vertically to make the focused cell visible onscreen (if it is not visible) and displays a context menu for it (the EnableNodeMenu option must be enabled).

See Also