Class
GridViewSummaryItem

Represents a summary item.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public class GridViewSummaryItem : NotifyPropertyBase, INotifyPropertyChangingEx, INotifyPropertyChanged

Inheritance: objectNotifyPropertyBaseGridViewSummaryItem

Derived Classes: GridViewGroupSummaryItem

Implements: INotifyPropertyChangedINotifyPropertyChangingEx

Inherited Members NotifyPropertyBase.SuspendNotifications()NotifyPropertyBase.ResumeNotifications(bool)NotifyPropertyBase.ResumeNotifications()NotifyPropertyBase.OnPropertyChanged(string)NotifyPropertyBase.ProcessPropertyChanged(PropertyChangedEventArgs)NotifyPropertyBase.OnPropertyChanging(string, object, object)NotifyPropertyBase.OnPropertyChanging(string)NotifyPropertyBase.OnPropertyChanging(PropertyChangingEventArgsEx)NotifyPropertyBase.ProcessPropertyChanging(PropertyChangingEventArgsEx)NotifyPropertyBase.SetProperty<T>(string, ref T, T)NotifyPropertyBase.IsSuspendedNotifyPropertyBase.PropertyChangedNotifyPropertyBase.PropertyChanging

Constructors

GridViewSummaryItem()

This is the default constructor of GridViewSummaryItem

Declaration

cs-api-definition
public GridViewSummaryItem()

GridViewSummaryItem(string, string, GridAggregateFunction)

Initializes a GridViewSummaryItem.

Declaration

cs-api-definition
public GridViewSummaryItem(string name, string formatString, GridAggregateFunction aggregate)

Parameters

name

string

The name of the column that will be used by the aggregate function.

formatString

string

Formatting to be applied

aggregate

GridAggregateFunction

the aggregate that will be used by the SumaryInfo

GridViewSummaryItem(string, string, string)

Initializes a new instance of the GridViewSummaryItem class.

Declaration

cs-api-definition
public GridViewSummaryItem(string name, string formatString, string aggregateExpression)

Parameters

name

string

The name.

formatString

string

The format string.

aggregateExpression

string

The aggregate expression.

Properties

Aggregate

Gets or sets the aggregate function that will be used with this summary info.

Declaration

cs-api-definition
public virtual GridAggregateFunction Aggregate { get; set; }

Property Value

GridAggregateFunction

AggregateExpression

Gets or sets the aggregate expression. This property essentially replaces the Aggregate property by providing advanced expressions compared to single function. This property has higher precedence compared to the Aggregate property which is obsolete.

Declaration

cs-api-definition
[Browsable(false)]
public string AggregateExpression { get; set; }

Property Value

string

FormatString

Gets or sets the formatting string that is applied to the value.

Declaration

cs-api-definition
public virtual string FormatString { get; set; }

Property Value

string

Name

Gets or sets the name of the column that will be used by the aggregate function.

Declaration

cs-api-definition
public virtual string Name { get; set; }

Property Value

string

Methods

Evaluate(IHierarchicalRow)

Evaluates the specified row.

Declaration

cs-api-definition
public virtual object Evaluate(IHierarchicalRow row)

Parameters

row

IHierarchicalRow

The row.

Returns

object

GetSummaryExpression()

Gets the summary expression.

Declaration

cs-api-definition
public string GetSummaryExpression()

Returns

string

OnPropertyChanged(PropertyChangedEventArgs)

Raises the PropertyChanged event

Declaration

cs-api-definition
protected override void OnPropertyChanged(PropertyChangedEventArgs e)

Parameters

e

PropertyChangedEventArgs

A PropertyChangedEventArgs instance containing event data.

Overrides NotifyPropertyBase.OnPropertyChanged(PropertyChangedEventArgs)