Skip to main content

BaseView.Name Property

Gets or sets the View name.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v22.2.dll

NuGet Package: DevExpress.Win.Grid


public virtual string Name { get; set; }

Property Value

Type Default Description
String String.Empty

A String value representing the View name.


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++).

See Also