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

XRControl.EvenStyleName 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.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

[Browsable(false)]
public virtual string EvenStyleName { get; set; }

#Property Value

Type Description
String

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:

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:

The following code snippets (auto-collected from DevExpress Examples) contain references to the EvenStyleName 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