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.v21.2.dll

Declaration

public int AlternationCount { get; set; }

Property Value

Type Default Description
Int32

0

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