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

TableView.AlternateRowBackground Property

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

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v19.1.dll

Declaration

public Brush AlternateRowBackground { get; set; }

Property Value

Type Description
Brush

A Brush value.

Remarks

The GridControl allows you to alternate row colors. Use the AlternateRowBackground property to set the background color of alternate rows. Use the TableView.AlternationCount property to set the alternate row frequency.

You can use theme dependent row alternation for even rows only. Set the TableView.UseEvenRowBackground to true to alternate even rows with the theme-dependent TableView.EvenRowBackground brush. Note, that you can specify a custom TableView.EvenRowBackground brush.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AlternateRowBackground property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also