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

PropertyGridControl.ShowNewItemMenu(String) Method

Invokes the New Item Menu for the collection definition with the specified path.

Namespace: DevExpress.Xpf.PropertyGrid

Assembly: DevExpress.Xpf.PropertyGrid.v24.2.dll

NuGet Package: DevExpress.Wpf.PropertyGrid

#Declaration

public void ShowNewItemMenu(
    string propertyPath
)

#Parameters

Name Type Description
propertyPath String

The collection definition’s path.

#Remarks

The collection‘s New Item Menu allows users to add items to the collection. The New Item Initializer specifies item types displayed in this menu.

The PropertyGridControl invokes the New Item Menu in the following cases:

  1. A user clicks the collection’s Add Item button.
  2. You call the ShowNewItemMenu(String) method.

Property Grid - New Item Menu

Refer to the following help topic for more information: Grid Menus.

See Also