Back to Devexpress

RowData.EvenRow Property

wpf-devexpress-dot-xpf-dot-grid-dot-rowdata-77f283a5.md

latest2.3 KB
Original Source

RowData.EvenRow Property

Gets whether the row’s visible index is even.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public bool EvenRow { get; protected set; }
vb
Public Property EvenRow As Boolean

Property Value

TypeDescription
Boolean

true if the row’s visible index is even; otherwise, false.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the EvenRow 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.

how-to-select-templates-based-on-custom-logic-e1667/CS/DXGrid_TemplateSelector/RowTemplateSelector.cs#L12

csharp
if (row != null)
    return row.EvenRow ? EvenRowTemplate : OddRowTemplate;
return base.SelectTemplate(item, container);

how-to-select-templates-based-on-custom-logic-e1667/VB/DXGrid_TemplateSelector/RowTemplateSelector.vb#L16

vb
If row IsNot Nothing Then
    Return If(row.EvenRow, EvenRowTemplate, OddRowTemplate)
End If

See Also

RowData Class

RowData Members

DevExpress.Xpf.Grid Namespace