GridControl.OptimizeSummaryCalculation Property

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

Namespace: DevExpress.Xpf.Grid

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


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

Property Value

Type Description

true, to optimize summary calculation; otherwise, false.


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.


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.


See Also