BaseView.ViewCaption Property
Gets or sets the View Caption.
Namespace: DevExpress.XtraGrid.Views.Base
Assembly: DevExpress.XtraGrid.v22.2.dll
NuGet Package: DevExpress.Win.Grid
Declaration
[DefaultValue("")]
[DXCategory("Appearance")]
[XtraSerializableProperty]
public string ViewCaption { get; set; }
Property Value
Type | Default | Description |
---|---|---|
String | String.Empty | A string value specifying the View’s caption. |
Remarks
View Captions are displayed in the following cases:
- When the ColumnViewOptionsView.ShowViewCaption option is enabled. In this mode, the View Caption is displayed above the View.
- Within Detail tabs that allow end-users to switch between details.
- Within Detail tooltips that are used to expand master rows, making a particular detail visible.
- Within the joined group panel, View captions are used to identify master and detail Views.
If the ViewCaption property value is an empty string, the View’s corresponding relationship name (BaseView.LevelName) is used. If a View is the main View (see GridControl.MainView) and the ViewCaption property is not set, the ‘MainView‘ string is used as the View caption.
See Also