Class PivotUpdatingManager
This class allows a PivotGridControl to automatically respond to changes in the underlying data. You can enable this support by setting EnableUpdating to true.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Controls.PivotGrid
Assembly: Syncfusion.PivotAnalysis.WPF.dll
Syntax
public class PivotUpdatingManager : PivotEngineUpdatingManager, IDisposable
Remarks
In-order for the PivotGridControl to automatically respond to the changes in the underlying data, the underlying data must be either: A) a DataTable or DataView or B) an IList<T> where T implements both INotifyPropertyChanging and INotifyPropertyChanged. Additionally, the IList must also implement INotifyCollectionChanged or IBindingList.
Constructors
PivotUpdatingManager(PivotGridControl)
Initializes a new instance of the PivotUpdatingManager class.
Declaration
public PivotUpdatingManager(PivotGridControl grid)
Parameters
Type | Name | Description |
---|---|---|
PivotGridControl | grid | The PivotGidControl that should be responding to updates. |
Properties
ThrottleUpdateRate
Gets or sets a millisecond value for time between UI refreshes. Zero indicates immediate refreshes of the UI without delays. Throttling the refresh rate can minimize CPU usage. The default value is zero, but depending upon your updating rate, values of 300 to 500 msecs may give lower CPU usage.
Declaration
public int ThrottleUpdateRate { get; set; }
Property Value
Type |
---|
System.Int32 |
Methods
CheckUpdateCell(Int32, Int32)
CheckUpdateCell method used to refresh the cell
Declaration
protected override void CheckUpdateCell(int row, int col)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | row | The row index of the cell |
System.Int32 | col | The column index of the cell |
Overrides
Dispose(Boolean)
Unsubscribe to certain events that were subscribed to when this object was created.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
UpdateRefreshHelper_CollectionChanged(Object, NotifyCollectionChangedEventArgs)
Override this method to control the response to a collection changed event for a list that implements the ICollectionChanged.
Declaration
protected override void UpdateRefreshHelper_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The ICollectionChanged collection. |
System.Collections.Specialized.NotifyCollectionChangedEventArgs | e | The System.Collections.Specialized.NotifyCollectionChangedEventArgscontains the event data. |
Overrides
UpdateRefreshHelper_ListChanged(Object, ListChangedEventArgs)
Override this method to control the response to a list changed event for a list that implements System.ComponentModel.IBindingList.
Declaration
protected override void UpdateRefreshHelper_ListChanged(object sender, ListChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The IBindingList. |
System.ComponentModel.ListChangedEventArgs | e | The System.ComponentModel.ListChangedEventArgscontains the event data. |