GrandTotalComparer
Used for IGroup comparison based on their grand totals.
Definition
Namespace:Telerik.Pivot.Core
Assembly:Telerik.WinControls.PivotGrid.dll
Syntax:
[DataContract]
public sealed class GrandTotalComparer : GroupComparer, INotifyPropertyChanged, ISupportInitialize, IServiceProvider, IEditable
Inheritance: objectCloneableSettingsNodeGroupComparerGrandTotalComparer
Implements:
Inherited Members
Constructors
public GrandTotalComparer()
Properties
Gets or sets a value that indicates the aggregate's grand total to be used in the comparison.
[DataMember]
public int AggregateIndex { get; set; }
Methods
Makes the instance a clone (deep copy) of the specified Cloneable.
protected override void CloneCore(Cloneable source)
The object to clone.
Overrides:
Notes to Inheritors If you derive from Cloneable, you may need to override this method to copy all properties. It is essential that all implementations call the base implementation of this method (if you don't call base you should manually copy all needed properties including base properties).
Compares two IGroups based on their grand totals.
public override int CompareGroups(IAggregateResultProvider results, IGroup left, IGroup right, PivotAxis axis)
The current aggregate results.
leftIGroupThe first IGroup to compare.
rightIGroupThe second IGroup to compare.
axisPivotAxisReturns:A signed integer that indicates the relative values of x and y, as shown in the following table.
Value Meaning Less than zero x is less than y.
Zero x equals y.
Greater than zero x is greater than y.
Overrides:
When implemented in a derived class, creates a new instance of the Cloneable derived class.
protected override Cloneable CreateInstanceCore()
New instance for cloning.
Overrides:
Do not call this method directly (except when calling base in an implementation). This method is called internally by the Clone() method whenever a new instance of the Cloneable is created. Notes to Inheritors. Every Cloneable derived class must implement this method. A typical implementation is to simply call the default constructor and return the result.