Skip to main content
A newer version of this page is available. .

BaseView.Name Property

Gets or sets the View name.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v19.1.dll

Declaration

[Browsable(false)]
[DefaultValue("")]
[XtraSerializableProperty]
public virtual string Name { get; set; }

Property Value

Type Default Description
String String.Empty

A String value representing the View name.

Remarks

At runtime, you can access View objects directly by their names. However, the View accessed will be a pattern View. Please refer to the Pattern and Clone Views topic for details on accessing View clones. Also note that the Name property of clone Views will return the name of the corresponding pattern View.

The Name property can be used at runtime to evaluate an object by its name rather than by the type or programmatic name. Since the property returns a String, it can be evaluated in case-style logic statements (Select statement in Visual Basic, switch statement in C# and C++).

The following code snippets (auto-collected from DevExpress Examples) contain references to the Name property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also