Back to Devexpress

CustomSummaryExistEventArgs.GroupLevel Property

corelibraries-devexpress-dot-data-dot-customsummaryexisteventargs-d31d9d66.md

latest2.8 KB
Original Source

CustomSummaryExistEventArgs.GroupLevel Property

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

Declaration

csharp
public int GroupLevel { get; }
vb
Public ReadOnly Property GroupLevel As Integer

Property Value

TypeDescription
Int32

An integer value representing the zero-based nesting level of the processed group.

|

Remarks

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

csharp
void OnCustomSummaryExists(object sender, CustomSummaryExistEventArgs e) {
    e.Exists = e.GroupLevel == 0;
}

wpf-data-grid-display-group-summaries/VB/DisplayGroupSummaries_CodeBehind/MainWindow.xaml.vb#L38

vb
Private Sub OnCustomSummaryExists(ByVal sender As Object, ByVal e As CustomSummaryExistEventArgs)
    e.Exists = e.GroupLevel = 0
End Sub

See Also

IsGroupSummary

CustomSummaryExistEventArgs Class

CustomSummaryExistEventArgs Members

DevExpress.Data Namespace