Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DataGridPrintStyle.AlternatingBackColor Property

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

Namespace: DevExpress.XtraPrintingLinks

Assembly: DevExpress.XtraPrinting.v24.2.dll

NuGet Package: 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