windowsforms-devexpress-dot-xtraverticalgrid-dot-propertygridcontrol-51ddfadf.md
Gets or sets whether the control is displayed in the Classic (a single view) or Office (a tabbed view) style.
Namespace : DevExpress.XtraVerticalGrid
Assembly : DevExpress.XtraVerticalGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid
[DefaultValue(PropertyGridView.Classic)]
[DXCategory("Layout")]
[XtraSerializableProperty]
public PropertyGridView ActiveViewType { get; set; }
<DXCategory("Layout")>
<DefaultValue(PropertyGridView.Classic)>
<XtraSerializableProperty>
Public Property ActiveViewType As PropertyGridView
| Type | Default | Description |
|---|---|---|
| DevExpress.XtraVerticalGrid.PropertyGridView | Classic |
A DevExpress.XtraVerticalGrid.PropertyGridView enumeration value that specifies whether the control is displayed in the Classic or Office style.
|
Using the ActiveViewType property you can enable one of the following views:
Classic - a single view with classic design
Office - a tabbed view with flat design
To add and customize tabs in the Office view, use the PropertyGridControl.Tabs collection.
Caution
The Office View does not support multi-editor rows. If the control contains multi-editor rows and you change the ActiveViewType property from Classic to Office in the Windows Forms Designer, the control automatically converts multi-editor rows into multiple single-editor rows. This operation is irreversible.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ActiveViewType 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.
dashboard-constant-lines/CS/ConstantLineExtension.Win/ConstantLineDialog.cs#L34
propertyGridControl1.ActiveViewType = PropertyGridView.Office;
propertyGridControl1.DefaultEditors.Add(typeof(Color), new RepositoryItemColorEdit());
See Also