SpreadsheetNameBoxControl.ItemDisplayMode Property

Gets or sets a value indicating what items should appear in the Name Box list.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.XtraSpreadsheet.v20.1.dll


public NameBoxItemDisplayMode ItemDisplayMode { get; set; }
Public Property ItemDisplayMode As NameBoxItemDisplayMode

Property Value

Type Default Description


A NameBoxItemDisplayMode enumeration member specifying what items should be displayed in the drop-down list of the Name Box control.


The following code snippet shows how to exclude both the defined names and table names from the Name Box:

using DevExpress.XtraSpreadsheet;
// ... 
spreadsheetNameBoxControl1.ItemDisplayMode = NameBoxItemDisplayMode.ExcludeDefinedNames | NameBoxItemDisplayMode.ExcludeTableNames;
See Also