Back to Devexpress

CustomSummaryExistEventArgs.Exists Property

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

latest2.6 KB
Original Source

CustomSummaryExistEventArgs.Exists Property

Gets or sets whether the summary value should be calculated and displayed.

Namespace : DevExpress.Data

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public virtual bool Exists { get; set; }
vb
Public Overridable Property Exists As Boolean

Property Value

TypeDescription
Boolean

true to calculate and display the summary value; otherwise, false.

|

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

Item

Summaries

CustomSummaryExistEventArgs Class

CustomSummaryExistEventArgs Members

DevExpress.Data Namespace