wpf-devexpress-dot-xpf-dot-grid-dot-gridcontrol-29ee9d82.md
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
public bool OptimizeSummaryCalculation { get; set; }
Public Property OptimizeSummaryCalculation As Boolean
| Type | Description |
|---|---|
| Boolean |
true to recalculate data summaries only for the changed record; false to recalculate summaries for all records.
|
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
<Grid>
<dxg:GridControl Name="grid" AutoGenerateColumns="None" AllowLiveDataShaping="True" OptimizeSummaryCalculation="True" ItemsSource="{Binding Devices}">
<dxg:GridControl.TotalSummary>
See Also