Skip to main content

ASPxPivotGrid.EndUpdate() Method

Re-enables render operations after a call to the ASPxPivotGrid.BeginUpdate method and forces an immediate re-rendering.

Namespace: DevExpress.Web.ASPxPivotGrid

Assembly: DevExpress.Web.ASPxPivotGrid.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public void EndUpdate()

Remarks

The ASPxPivotGrid allows a sequence of operations that affect its appearance and/or functionality to be performed without having the control render itself after each modification. To do this, the code performing sequential changes to the ASPxPivotGrid must be enclosed within calls to the ASPxPivotGrid.BeginUpdate and ASPxPivotGrid.EndUpdate methods. This improves performance and avoids unnecessary render operations.

The ASPxPivotGrid.BeginUpdate method locks the pivot grid control until the EndUpdate method is called. Any changes made after a call to the ASPxPivotGrid.BeginUpdate method don’t force the control to update itself. The EndUpdate method invalidates and unlocks the pivot grid so that any further changes are applied immediately.

If the ASPxPivotGrid.BeginUpdate method has been called several times, the EndUpdate method must be called as many times as the ASPxPivotGrid.BeginUpdate. Otherwise, the control stays locked. To ensure that the EndUpdate method is always called even if an exception occurs, wrap any calls to ASPxPivotGrid.BeginUpdate and EndUpdate methods in a try…finally statement.

The following code snippets (auto-collected from DevExpress Examples) contain references to the EndUpdate() method.

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