ComponentOne FlexPivot for WinForms
BeginUpdate Method (C1FlexPivotEngine)
Example 

C1.DataEngine.4 Assembly > C1.FlexPivot Namespace > C1FlexPivotEngine Class : BeginUpdate Method
Suspend automatic updates to the output table while defining the FlexPivot view.
Syntax
'Declaration
 
Public Sub BeginUpdate() 
public void BeginUpdate()
Remarks
The C1FlexPivotEngine updates the output table whenever the fields that make up the FlexPivot view change. Before making multiple changes (such as defining a new FlexPivot view), you can increase performance by enclosing the changes between calls to BeginUpdate and EndUpdate.
Example
The code below shows how to define a new FlexPivot view efficiently by enclosing the changes between calls to BeginUpdate and EndUpdate.
// set data source (populates Fields list)
fp.DataSource = GetDataTable();
            
// prevent updates while building FlexPivot view
fp.BeginUpdate();
            
// show countries in rows
fp.RowFields.Add("Country");
            
// show categories and products in columns
fp.ColumnFields.Add("Category");
fp.ColumnFields.Add("Product");
            
// show total sales in cells
fp.ValueFields.Add("Sales");
            
// done defining the view
fp.EndUpdate();
See Also

Reference

C1FlexPivotEngine Class
C1FlexPivotEngine Members