windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsbehavior-b8a5ddf7.md
Gets or sets whether total summaries are automatically updated to reflect changes in column values.
Namespace : DevExpress.XtraGrid.Views.Grid
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool AutoUpdateTotalSummary { get; set; }
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property AutoUpdateTotalSummary As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true if automatic total summary updates are enabled; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to AutoUpdateTotalSummary |
|---|---|
| GridView |
.OptionsBehavior .AutoUpdateTotalSummary
|
You can use a column’s GridColumn.SummaryItem property to define an aggregate function to be calculated by column values and to format its resulting value. The formatted value will be displayed within the column’s corresponding view footer cell.
By default, the AutoUpdateTotalSummary property is set to true. If there is a summary item calculated against a specific column and a cell value in this column is changed, the grid automatically updates the summary in the following cases:
However, you may want to disable this behavior. For example, disabling automatic summary value recalculation results in performance benefits when working with large data arrays. In this case, you need to update the total summary manually, when required, via the GridView.UpdateTotalSummary method.
See Also