Back to Devexpress

TreeListView.AlternationCount Property

wpf-devexpress-dot-xpf-dot-grid-dot-treelistview-3acf7a5a.md

latest1.5 KB
Original Source

TreeListView.AlternationCount Property

Gets or sets the alternate row frequency. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public int AlternationCount { get; set; }
vb
Public Property AlternationCount As Integer

Property Value

TypeDescription
Int32

An integer value that is the alternate row frequency. By default, it’s set to 2.

|

Remarks

DXTreeList allows you to alternate row colors. Use the AlternationCount property to set the alternate row frequency. Use the TreeListView.AlternateRowBackground property to set the background color of alternate rows.

Note

If the AlternationCount value is less than 2, then 2 is used instead.

See Also

AlternateRowBackground

TreeListView Class

TreeListView Members

DevExpress.Xpf.Grid Namespace