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

Declaration

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

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.

Implements

DevExpress.Xpf.Data.IDataProviderOwner.OptimizeSummaryCalculation
See Also