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

TableView.AlternationCount Property

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

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public int AlternationCount { get; set; }

#Property Value

Type Description
Int32

An integer value that is the alternate row frequency. By default, 0

#Remarks

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

If the AlternationCount property is set to 0, none of the rows has the alternative background. If the AlternationCount property is set to 1, all rows has the alternative background.

See Also