Back to Devexpress

How to: Customize the appearance of odd rows

windowsforms-5655-controls-and-libraries-tree-list-examples-appearance-how-to-customize-the-appearance-of-odd-rows.md

latest710 B
Original Source

How to: Customize the appearance of odd rows

  • Nov 13, 2018

The following example changes the appearance of odd rows. The corresponding appearance property is accessed via the TreeList.Appearance property.

The image below shows the result.

csharp
treeList1.Appearance.OddRow.BackColor = Color.LightSteelBlue;
treeList1.OptionsView.EnableAppearanceOddRow = true;
vb
TreeList1.Appearance.OddRow.BackColor = Color.LightSteelBlue
TreeList1.OptionsView.EnableAppearanceOddRow = True