Class
DataGroup

Represents a data group.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public class DataGroup : DataItemGroup<GridViewRowInfo>, IReadOnlyCollection<GridViewRowInfo>, IEnumerable

Inheritance: objectGroup<GridViewRowInfo>DataItemGroup<GridViewRowInfo>DataGroup

Implements: IEnumerableIReadOnlyCollection<GridViewRowInfo>

Inherited Members DataItemGroup<GridViewRowInfo>.CacheDataItemGroup<GridViewRowInfo>.ItemsGroup<GridViewRowInfo>.IndexOf(GridViewRowInfo)Group<GridViewRowInfo>.Evaluate(string)Group<GridViewRowInfo>.LevelGroup<GridViewRowInfo>.HeaderGroup<GridViewRowInfo>.KeyGroup<GridViewRowInfo>.ItemCountGroup<GridViewRowInfo>.Parent

Constructors

DataGroup(object, Group<GridViewRowInfo>, GridViewTemplate)

Initializes a new instance of the DataGroup class.

Declaration

cs-api-definition
public DataGroup(object key, Group<GridViewRowInfo> parent, GridViewTemplate viewTemplate)

Parameters

key

object

The key.

parent

Group<GridViewRowInfo>

The parent.

viewTemplate

GridViewTemplate

The view template.

Properties

GroupDescriptor

Gets the GroupDescriptor associated with this group.

Declaration

cs-api-definition
public GroupDescriptor GroupDescriptor { get; }

Property Value

GroupDescriptor

GroupRow

Gets the group row.

Declaration

cs-api-definition
public GridViewGroupRowInfo GroupRow { get; }

Property Value

GridViewGroupRowInfo

The group row.

Groups

Gets the groups.

Declaration

cs-api-definition
public virtual DataGroupCollection Groups { get; }

Property Value

DataGroupCollection

The groups.

IsExpanded

Gets the expanded state of the group.

Declaration

cs-api-definition
public bool IsExpanded { get; }

Property Value

bool

IsValid

Determines whether the group is in valid state (present in its owning data view).

Declaration

cs-api-definition
public bool IsValid { get; }

Property Value

bool

this[int]

Gets the item at the specified index.

Declaration

cs-api-definition
public override GridViewRowInfo this[int index] { get; }

Parameters

index

int

Property Value

GridViewRowInfo

Overrides Group<GridViewRowInfo>.this[int]

Methods

Collapse()

Collapses this instance.

Declaration

cs-api-definition
public void Collapse()

Collapse(bool)

Collapses this instance and its child instances recursive.

Declaration

cs-api-definition
public void Collapse(bool recursive)

Parameters

recursive

bool

Contains(GridViewRowInfo)

Determines whether the specified item is contained.

Declaration

cs-api-definition
public override bool Contains(GridViewRowInfo item)

Parameters

item

GridViewRowInfo

The item.

Returns

bool

true if [contains] [the specified item]; otherwise, false.

Overrides Group<GridViewRowInfo>.Contains(GridViewRowInfo)

CopyTo(GridViewRowInfo[], int)

Copies to the passed array.

Declaration

cs-api-definition
public override void CopyTo(GridViewRowInfo[] array, int index)

Parameters

array

GridViewRowInfo[]

The array.

index

int

The index.

Overrides Group<GridViewRowInfo>.CopyTo(GridViewRowInfo[], int)

Expand()

Expands this instance.

Declaration

cs-api-definition
public void Expand()

Expand(bool)

Expands this instance and its child instances recursive.

Declaration

cs-api-definition
public void Expand(bool recursive)

Parameters

recursive

bool

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration

cs-api-definition
public override IEnumerator<GridViewRowInfo> GetEnumerator()

Returns

IEnumerator<GridViewRowInfo>

A IEnumerator<T> that can be used to iterate through the collection.

Overrides Group<GridViewRowInfo>.GetEnumerator()