Skip to main content
A newer version of this page is available. .

GridControl.OptimizeSummaryCalculation Property

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

Namespace: DevExpress.Xpf.Grid

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core

Declaration

public bool OptimizeSummaryCalculation { get; set; }

Property Value

Type Description
Boolean

true, to optimize summary calculation; otherwise, false.

Remarks

By default, any changes in the data source causes a complete summary recalculation. If the OptimizeSummaryCalculation property is set to true, the GridControl processes only a particular change when recalculating summaries.

Note

The GridControl should be bound to an ObservableCollection whose items implement the INotifyPropertyChanged and INotifyPropertyChanging interfaces.

You can use the POCO mechanism to implement the INotifyPropertyChanging interface with a single line of code. Assign the POCOViewModelAttribute to a POCO view model class and set its POCOViewModelAttribute.ImplementINotifyPropertyChanging property to true.

Calculation of custom summaries and summaries for unbound columns cannot be optimized.

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.

See Also