Back to Devexpress

TreeList.ViewStyle Property

windowsforms-devexpress-dot-xtratreelist-dot-treelist-8b1ff825.md

latest2.9 KB
Original Source

TreeList.ViewStyle Property

Gets or sets whether the control renders its data in a default Tree List style (cell borders, column headers and indicator panel are visible by default) or Tree View style (no cell borders, column headers and indicator panel).

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
[DefaultValue(TreeListViewStyle.Default)]
[DXCategory("Appearance")]
[XtraSerializableProperty]
public TreeListViewStyle ViewStyle { get; set; }
vb
<DXCategory("Appearance")>
<DefaultValue(TreeListViewStyle.Default)>
<XtraSerializableProperty>
Public Property ViewStyle As TreeListViewStyle

Property Value

TypeDefaultDescription
DevExpress.XtraTreeList.TreeListViewStyleDefault

A value that specifies the control’s visual style.

|

Remarks

The ViewStyle property allows you to choose between the TreeView and TreeList visual styles.

|

TreeView style

|

TreeList style

| | --- | --- | |

|

|

When the ViewStyle property is set to Default , the actual view style is dependent on the TreeList.TreeViewColumn and TreeList.TreeViewFieldName properties. If the TreeList.TreeViewColumn property refers to a valid column, or the TreeList.TreeViewFieldName property is set to a non-empty string (in bound mode), the actual view style is TreeListViewStyle.TreeView. Otherwise, the actual view style is TreeListViewStyle.MultiColumnTreeList.

See TreeView Style to learn more.

See Also

TreeViewColumn

TreeViewFieldName

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace