New to Telerik UI for WinForms? Start a free 30-day trial

Exposes sibling groups through a read-only wrapper over their source list.

Disposing the collection clears the underlying list supplied to the constructor.

Definition

Namespace:Telerik.WinControls.Data

Assembly:Telerik.WinControls.dll

Type Parameters:

T

The data-item type contained by each group.

Syntax:

C#
public class GroupCollection<T> : ReadOnlyCollection<Group<T>>, IList, ICollection, IEnumerable, IDisposable where T : IDataItem

Inheritance: objectReadOnlyCollection<Group<T>>GroupCollection<T>

Derived Classes: DataGroupCollectionPropertyGridGroupCollection

Implements: ICollectionIDisposableIEnumerableIList

Inherited Members ReadOnlyCollection<Group<T>>.Contains(Group<T>)ReadOnlyCollection<Group<T>>.CopyTo(Group<T>[], int)ReadOnlyCollection<Group<T>>.GetEnumerator()ReadOnlyCollection<Group<T>>.IndexOf(Group<T>)ReadOnlyCollection<Group<T>>.CountReadOnlyCollection<Group<T>>.this[int]ReadOnlyCollection<Group<T>>.Items...

Constructors

Wraps the supplied list without copying it.

C#
public GroupCollection(IList<Group<T>> list)
Parameters:listIList<Group<T>>

The source list of sibling groups.

Fields

Provides the initially empty group collection used when no groups are available.

C#
public static GroupCollection<T> Empty

Methods

Clears the underlying group list.

C#
public void Dispose()

Implements: IDisposable.Dispose()