Back to Devexpress

RowData.Level Property

wpf-devexpress-dot-xpf-dot-grid-dot-rowdata-aa97736e.md

latest2.3 KB
Original Source

RowData.Level Property

Gets the row’s grouping level.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public override int Level { get; }
vb
Public Overrides ReadOnly Property Level As Integer

Property Value

TypeDescription
Int32

An integer value that specifies the row’s grouping level.

|

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

wpf-grid-read-only-and-enabled-binding/CS/MainWindow.xaml.cs#L30

csharp
public override ImageSource Select(TreeListRowData rowData) {
    if(rowData.Level == 0)
        return TaskImages[0];

wpf-grid-read-only-and-enabled-binding/VB/MainWindow.xaml.vb#L36

vb
Public Overrides Function [Select](ByVal rowData As TreeListRowData) As ImageSource
    If rowData.Level = 0 Then
        Return TaskImages(0)

See Also

GetRowLevelByRowHandle(Int32)

RowData Class

RowData Members

DevExpress.Xpf.Grid Namespace