Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeListOptionsView.EnableAppearanceOddRow Property

Gets or sets whether odd nodes are painted using the appearance settings provided by the TreeListAppearanceCollection.OddRow property.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

[DefaultValue(false)]
[DXCategory("Appearance")]
[XtraSerializableProperty]
public virtual bool EnableAppearanceOddRow { get; set; }

#Property Value

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.

#Property Paths

You can access this nested property as listed below:

Object Type Path to EnableAppearanceOddRow
TreeList
.OptionsView .EnableAppearanceOddRow

#Remarks

For more information on appearances, see the Appearances document.

#Example

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.

image

treeList1.Appearance.EvenRow.BackColor = Color.PaleVioletRed;
treeList1.Appearance.OddRow.BackColor = Color.LightPink;
treeList1.OptionsView.EnableAppearanceEvenRow = true;
treeList1.OptionsView.EnableAppearanceOddRow = true;
See Also