windowsforms-devexpress-dot-xtratreelist-dot-treelistoptionsview-8403f670.md
Gets or sets whether odd nodes are painted using the appearance settings provided by the TreeListAppearanceCollection.OddRow property.
Namespace : DevExpress.XtraTreeList
Assembly : DevExpress.XtraTreeList.v25.2.dll
NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList
[DefaultValue(false)]
[DXCategory("Appearance")]
[XtraSerializableProperty]
public virtual bool EnableAppearanceOddRow { get; set; }
<DXCategory("Appearance")>
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property EnableAppearanceOddRow As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true to paint odd nodes using the appearance settings provided by the TreeListAppearanceCollection.OddRow property; false to use the appearance settings provided by the TreeListAppearanceCollection.Row property.
|
You can access this nested property as listed below:
| Object Type | Path to EnableAppearanceOddRow |
|---|---|
| TreeList |
.OptionsView .EnableAppearanceOddRow
|
For more information on appearances, see the Appearances document.
The following code shows how to use the EvenRow and OddRow properties to customize the appearance of even and odd rows in the TreeList. Note that these properties are in effect if the EnableAppearanceEvenRow and EnableAppearanceOddRow options are enabled.
treeList1.Appearance.EvenRow.BackColor = Color.PaleVioletRed;
treeList1.Appearance.OddRow.BackColor = Color.LightPink;
treeList1.OptionsView.EnableAppearanceEvenRow = true;
treeList1.OptionsView.EnableAppearanceOddRow = true;
TreeList1.Appearance.EvenRow.BackColor = Color.PaleVioletRed
TreeList1.Appearance.OddRow.BackColor = Color.LightPink
TreeList1.OptionsView.EnableAppearanceEvenRow = True
TreeList1.OptionsView.EnableAppearanceOddRow = True
See Also