corelibraries-devexpress-dot-data-dot-customsummaryexisteventargs-d31d9d66.md
Gets the nesting level of the group whose summary value is being calculated.
Namespace : DevExpress.Data
Assembly : DevExpress.Data.v25.2.dll
NuGet Package : DevExpress.Data
public int GroupLevel { get; }
Public ReadOnly Property GroupLevel As Integer
| Type | Description |
|---|---|
| Int32 |
An integer value representing the zero-based nesting level of the processed group.
|
Reading this property is useful only when grouping is applied to data and a group summary item’s value is being calculated. In other cases, the GroupLevel property returns 0.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GroupLevel 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-data-grid-display-group-summaries/CS/DisplayGroupSummaries_CodeBehind/MainWindow.xaml.cs#L63
void OnCustomSummaryExists(object sender, CustomSummaryExistEventArgs e) {
e.Exists = e.GroupLevel == 0;
}
wpf-data-grid-display-group-summaries/VB/DisplayGroupSummaries_CodeBehind/MainWindow.xaml.vb#L38
Private Sub OnCustomSummaryExists(ByVal sender As Object, ByVal e As CustomSummaryExistEventArgs)
e.Exists = e.GroupLevel = 0
End Sub
See Also
CustomSummaryExistEventArgs Class