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

DataGridPrintStyle.AlternatingBackColor Property

Gets or sets the background color of odd-numbered rows of the grid.

Namespace: DevExpress.XtraPrintingLinks

Assembly: DevExpress.Printing.v18.2.Core.dll

Declaration

public Color AlternatingBackColor { get; set; }

Property Value

Type Description
Color

A Color that represents the alternating background color.

Remarks

By default, both the DataGridPrintStyle.BackColor and the AlternatingBackColor properties are set to the same color. Setting the BackColor property affects only even-numbered rows, while setting the AlternatingBackColor affects only odd-numbered rows.

See Also