Skip to main content

DataGridPrintStyle.AlternatingBackColor Property

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

Namespace: DevExpress.XtraPrintingLinks

Assembly: DevExpress.XtraPrinting.v24.1.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.Printing

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