BeginUpdate;
The BeginUpdate method disables any table updating.
The method is used in case of changing large amount of data, or table parameters, to avoid blinking of visual components that display table data. Redrawing is resumed by the EndUpdate method.
Executing the example requires a form with the Button1 button, the TabSheetBox component, and the UiErAnalyzer component named UiErAnalyzer1 that acts as a data source for the TabSheetBox component.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
OLAP: IEaxAnalyzer;
Pivot: IPivot;
Begin
OLAP := UiErAnalyzer1.ErAnalyzer;
Pivot := OLAP.Pivot;
Pivot.BeginUpdate;
//...
//Change table parameters
//...
Pivot.EndUpdate;
End Sub Button1OnClick;
Clicking the button deactivates table copying to accelerate process of data table updating.
See also: