Class
GridViewGroupRowInfo

Represents a group header row that displays grouping information and provides access to grouped data and summary rows.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public class GridViewGroupRowInfo : GridViewRowInfo, IDataItem, IHierarchicalRow, INotifyPropertyChanged, INotifyPropertyChangingEx, IDisposable

Inheritance: objectGridViewRowInfoGridViewGroupRowInfo

Implements: IDataItemIDisposableIHierarchicalRowINotifyPropertyChangedINotifyPropertyChangingEx

Inherited Members GridViewRowInfo.IsAttachedStateGridViewRowInfo.IsModifiedStateGridViewRowInfo.IsCurrentStateGridViewRowInfo.IsSelectedStateGridViewRowInfo.IsExpandedStateGridViewRowInfo.IsVisibleStateGridViewRowInfo.AllowResizeStateGridViewRowInfo.SuspendNotificationsStateGridViewRowInfo.IsInitializedStateGridViewRowInfo.LastRowInfoStateGridViewRowInfo.stateGridViewRowInfo.SetParent(GridViewRowInfo)GridViewRowInfo.GetActualHeight(IGridView)GridViewRowInfo.InvalidateRow()GridViewRowInfo.EnsureVisible()GridViewRowInfo.EnsureVisible(bool)GridViewRowInfo.Delete()GridViewRowInfo.GetErrorText(string)GridViewRowInfo.HasChildRows()GridViewRowInfo.SuspendPropertyNotifications()GridViewRowInfo.ResumePropertyNotifications()GridViewRowInfo.FindParent<T>()GridViewRowInfo.Dispose()GridViewRowInfo.DispatchEvent(KnownEvents, GridEventType, GridEventDispatchMode, object, object[])GridViewRowInfo.GetEventInfo(GridPropertyChangedEventArgs, out GridEventDispatchMode)GridViewRowInfo.OnBeginEdit()GridViewRowInfo.OnEndEdit()GridViewRowInfo.SetRowStateProperty<T>(string, ref T, T)GridViewRowInfo.SetBooleanProperty(string, int, bool)GridViewRowInfo.IsSystemGridViewRowInfo.ErrorTextGridViewRowInfo.IndexGridViewRowInfo.ViewInfoGridViewRowInfo.ViewTemplateGridViewRowInfo.CellsGridViewRowInfo.TagGridViewRowInfo.DataBoundItemGridViewRowInfo.MinHeightGridViewRowInfo.MaxHeightGridViewRowInfo.HeightGridViewRowInfo.IsCurrentGridViewRowInfo.IsSelectedGridViewRowInfo.IsExpandedGridViewRowInfo.IsVisibleGridViewRowInfo.IsPinnedGridViewRowInfo.PinPositionGridViewRowInfo.IsOddGridViewRowInfo.AllowResizeGridViewRowInfo.HierarchyLevelGridViewRowInfo.HasChildViewsGridViewRowInfo.PropertyChangedGridViewRowInfo.PropertyChanging

Constructors

GridViewGroupRowInfo(GridViewInfo, DataGroup)

Initializes a new instance of the GridViewGroupRowInfo class.

Declaration

cs-api-definition
public GridViewGroupRowInfo(GridViewInfo gridViewInfo, DataGroup dataGroup)

Parameters

gridViewInfo

GridViewInfo

The associated GridViewInfo that owns this group row.

dataGroup

DataGroup

The data group that this row represents.

Properties

AllowedStates

Gets the allowed states for this group row.

Declaration

cs-api-definition
public override AllowedGridViewRowInfoStates AllowedStates { get; }

Property Value

AllowedGridViewRowInfoStates

Overrides GridViewRowInfo.AllowedStates

BottomSummaryRows

Gets the collection of summary rows that appear at the bottom of this group.

Declaration

cs-api-definition
public GridViewSummaryRowCollection BottomSummaryRows { get; }

Property Value

GridViewSummaryRowCollection

ChildRows

Gets the collection of visual child rows that belong to this group.

Declaration

cs-api-definition
public override GridViewChildRowCollection ChildRows { get; }

Property Value

GridViewChildRowCollection

Overrides GridViewRowInfo.ChildRows

Group

Gets or sets the data group that this row represents.

Declaration

cs-api-definition
public override DataGroup Group { get; }

Property Value

DataGroup

Overrides GridViewRowInfo.Group

GroupLevel

Gets the hierarchy level of the group that owns this row.

Declaration

cs-api-definition
public int GroupLevel { get; }

Property Value

int

HeaderText

Gets or sets the header text displayed for this group row.

Declaration

cs-api-definition
public string HeaderText { get; set; }

Property Value

string

Parent

Gets the parent row for this group row in the hierarchy.

Declaration

cs-api-definition
public override IHierarchicalRow Parent { get; }

Property Value

IHierarchicalRow

Overrides GridViewRowInfo.Parent

RowElementType

Gets the type of the GridRowElement used to visualize this group row.

Declaration

cs-api-definition
public override Type RowElementType { get; }

Property Value

Type

Overrides GridViewRowInfo.RowElementType

ShowCollapsedGroupSummaries

Gets or sets a value indicating whether summary rows of collapsed groups will be visible. If true, the summary rows will not be hidden when the group is collapsed. Note that by default the value of this property is inherited from the ShowCollapsedGroupSummaries property. If you need different behavior for different groups/group levels, you can use the CreateRowInfo event and set the ShowCollapsedGroupSummaries property of each group individually.

Declaration

cs-api-definition
public bool ShowCollapsedGroupSummaries { get; set; }

Property Value

bool

TopSummaryRows

Gets the collection of summary rows that appear at the top of this group.

Declaration

cs-api-definition
public GridViewSummaryRowCollection TopSummaryRows { get; }

Property Value

GridViewSummaryRowCollection

Methods

BuildBottomSummaryRows()

Builds the collection of bottom summary rows for this group.

Declaration

cs-api-definition
protected virtual void BuildBottomSummaryRows()

BuildSummaryRows()

Builds the summary rows if necessary - when groups or summaries are changed.

Declaration

cs-api-definition
protected virtual void BuildSummaryRows()

BuildTopSummaryRows()

Builds the collection of top summary rows for this group.

Declaration

cs-api-definition
protected virtual void BuildTopSummaryRows()

ClearCache()

Clears the cached data for this group row.

Declaration

cs-api-definition
protected override void ClearCache()

Overrides GridViewRowInfo.ClearCache()

GetSummary()

Gets the formatted summary text for this group row.

Declaration

cs-api-definition
public string GetSummary()

Returns

string

The formatted summary text containing aggregated values for this group.

OnPropertyChanged(PropertyChangedEventArgs)

Raises the PropertyChanged event and handles group expansion state changes.

Declaration

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

Parameters

e

PropertyChangedEventArgs

The event arguments containing property change information.

Overrides GridViewRowInfo.OnPropertyChanged(PropertyChangedEventArgs)

OnPropertyChanging(PropertyChangingEventArgsEx)

Raises the PropertyChanging event and handles group expansion state changes before they occur.

Declaration

cs-api-definition
protected override void OnPropertyChanging(PropertyChangingEventArgsEx args)

Parameters

args

PropertyChangingEventArgsEx

The event arguments containing property change information.

Overrides GridViewRowInfo.OnPropertyChanging(PropertyChangingEventArgsEx)