Skip to main content

XRControl.XRControlStyles.EvenStyle Property

Gets or sets the style applied to the control when it displays an even record from the bound data source.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.1.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

[DefaultValue(null)]
public virtual XRControlStyle EvenStyle { get; set; }

Property Value

Type Default Description
XRControlStyle null

The name of the style from the Styles collection.

Remarks

The even style is the style applied to the control when it displays an even record from the bound dataset. You can use the XtraReportBase.CurrentRowIndex property to define whether the row index.

if (CurrentRowIndex % 2 == 0) {  
    //Even  
}  
else {  
    //Odd  
} 

If the control consists of static rows, such as a static table with multiple rows, then even and odd styles do not apply.

You can find examples of even and odd styles in the following help sections:

See Also