Skip to main content

DataControlBase.AlternateRowBackground Property

Gets or sets a brush used to paint the background of alternate rows. This is a dependency property.

Namespace: DevExpress.WinUI.Grid

Assembly: DevExpress.WinUI.Grid.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP(null, Handler = "UpdateRowAppearance")]
public Brush AlternateRowBackground { get; set; }

Property Value

Type Description
Brush

A brush used to paint the background of alternate rows.

Remarks

The GridControl allows you to alternate row colors. To enable row alternation, set the DataControlBase.AlternationCount property to an alternate row frequency. Use the 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