Skip to main content
All docs
V24.2

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