Skip to main content
A newer version of this page is available. .

DataControlBase.AlternationCount Property

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

Namespace: DevExpress.WinUI.Grid

Assembly: DevExpress.WinUI.Grid.v22.1.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP(0, Handler = "UpdateRowAppearance")]
public int AlternationCount { get; set; }

Property Value

Type Description
Int32

An alternate row frequency

Remarks

The GridControl allows you to alternate row colors. To enable row alternation, set the AlternationCount property to an alternate row frequency. Use the DataControlBase.AlternateRowBackground property to set the background color of alternate rows. You can also use the DataControlBase.AlternateRowBackgroundPalette property to specify a palette of row background colors.

WinUI Data Grid - Alternate Row Background

<dxg:GridControl AlternationCount="2" AlternateRowBackground="PaleVioletRed" .../>
See Also