New to Telerik UI for WinFormsStart a free 30-day trial

Represents a summary item.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
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

This is the default constructor of GridViewSummaryItem

C#
public GridViewSummaryItem()

Initializes a GridViewSummaryItem.

C#
public GridViewSummaryItem(string name, string formatString, GridAggregateFunction aggregate)
Parameters:namestring

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

formatStringstring

Formatting to be applied

aggregateGridAggregateFunction

the aggregate that will be used by the SumaryInfo

Initializes a new instance of the GridViewSummaryItem class.

C#
public GridViewSummaryItem(string name, string formatString, string aggregateExpression)
Parameters:namestring

The name.

formatStringstring

The format string.

aggregateExpressionstring

The aggregate expression.

Properties

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

C#
public virtual GridAggregateFunction Aggregate { get; set; }

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.

C#
[Browsable(false)]
public string AggregateExpression { get; set; }

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

C#
public virtual string FormatString { get; set; }

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

C#
public virtual string Name { get; set; }

Methods

Evaluates the specified row.

C#
public virtual object Evaluate(IHierarchicalRow row)
Parameters:rowIHierarchicalRow

The row.

Returns:

object

Gets the summary expression.

C#
public string GetSummaryExpression()
Returns:

string

Raises the PropertyChanged event

C#
protected override void OnPropertyChanged(PropertyChangedEventArgs e)
Parameters:ePropertyChangedEventArgs

A PropertyChangedEventArgs instance containing event data.

Overrides: NotifyPropertyBase.OnPropertyChanged(PropertyChangedEventArgs)