wpf-devexpress-dot-xpf-dot-grid-dot-rowdata-aa97736e.md
Gets the row’s grouping level.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public override int Level { get; }
Public Overrides ReadOnly Property Level As Integer
| Type | Description |
|---|---|
| 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
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
Public Overrides Function [Select](ByVal rowData As TreeListRowData) As ImageSource
If rowData.Level = 0 Then
Return TaskImages(0)
See Also