Back to Devexpress

GridControl.OptimizeSummaryCalculation Property

wpf-devexpress-dot-xpf-dot-grid-dot-gridcontrol-29ee9d82.md

latest3.4 KB
Original Source

GridControl.OptimizeSummaryCalculation Property

Specifies whether to optimize summary calculation. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public bool OptimizeSummaryCalculation { get; set; }
vb
Public Property OptimizeSummaryCalculation As Boolean

Property Value

TypeDescription
Boolean

true to recalculate data summaries only for the changed record; false to recalculate summaries for all records.

|

Remarks

We recommend that you optimize summary calculation in the following case:

Refer to the following topic for information on how to optimize data updates within the GridControl: Frequent Data Updates.

View Example: How to Effectively Process Data Updates in WPF GridControl

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the OptimizeSummaryCalculation 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-process-frequent-data-updates/CS/ChunkAndOptSummariesExample/MainWindow.xaml#L16

xml
<Grid>
    <dxg:GridControl Name="grid" AutoGenerateColumns="None" AllowLiveDataShaping="True" OptimizeSummaryCalculation="True" ItemsSource="{Binding Devices}">
        <dxg:GridControl.TotalSummary>

See Also

GridControl Class

GridControl Members

DevExpress.Xpf.Grid Namespace