BaseView.Name Property

Gets or sets the View name.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[Browsable(false)]
[DefaultValue("")]
[XtraSerializableProperty]
public virtual string Name { get; set; }
<Browsable(False)>
<DefaultValue("")>
<XtraSerializableProperty>
Public Overridable Property Name As String

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

Implements

DevExpress.Utils.IXtraSerializableChildren.Name
See Also