skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class Group<T>

Inheritance
System.Object
Group<T>
DataItemGroup<TDataItem>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.Data
Assembly: Telerik.WinControls.dll

Syntax

public class Group<T> : IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable where T : IDataItem
Type Parameters
T

Constructors

Group(Object)

Declaration
public Group(object key)
Parameters
System.Object key

Group(Object, Group<T>)

Declaration
public Group(object key, Group<T> parent)
Parameters
System.Object key

Group<T> parent

Properties

Groups

Gets the groups.

Declaration
public virtual GroupCollection<T> Groups { get; }
Property Value
GroupCollection<T>

The groups.

Header

Gets or sets the header.

Declaration
public virtual string Header { get; set; }
Property Value
System.String

The header.

Item[Int32]

Gets the item at the specified index.

Declaration
public virtual T this[int index] { get; }
Parameters
System.Int32 index

Property Value
T

Implements
IReadOnlyCollection<T>.Item[Int32]

ItemCount

Gets the item count.

Declaration
public virtual int ItemCount { get; }
Property Value
System.Int32

The item count.

Items

Declaration
protected virtual IList<T> Items { get; }
Property Value
System.Collections.Generic.IList<T>

Key

Gets the key of the group.

Declaration
public object Key { get; }
Property Value
System.Object

The key.

Level

Get the zero-based depth of the Group

Declaration
public int Level { get; }
Property Value
System.Int32

Parent

Gets the parent.

Declaration
public virtual Group<T> Parent { get; }
Property Value
Group<T>

The parent.

Methods

Contains(T)

Determines whether [contains] [the specified item].

Declaration
public virtual bool Contains(T item)
Parameters
T item

The item.

Returns
System.Boolean

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

Implements
IReadOnlyCollection<T>.Contains(T)

CopyTo(T[], Int32)

Declaration
public virtual void CopyTo(T[] array, int index)
Parameters
T[] array

System.Int32 index

Implements
IReadOnlyCollection<T>.CopyTo(T[], Int32)

Evaluate(String)

Evaluates the specified expression.

Declaration
public object Evaluate(string expression)
Parameters
System.String expression

The expression.

Returns
System.Object

GetEnumerator()

Declaration
public virtual IEnumerator<T> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<T>

Implements
System.Collections.Generic.IEnumerable<T>.GetEnumerator()

GetItems()

Gets the items contained in this group. This method is used internally.

Declaration
public IList<T> GetItems()
Returns
System.Collections.Generic.IList<T>

A list containing group items.

IndexOf(T)

Indexes the of.

Declaration
public virtual int IndexOf(T item)
Parameters
T item

The item.

Returns
System.Int32

Implements
IReadOnlyCollection<T>.IndexOf(T)

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator

Implements
System.Collections.IEnumerable.GetEnumerator()

IReadOnlyCollection<T>.Count

Declaration
int IReadOnlyCollection<T>.Count { get; }
Returns
System.Int32

Implements
IReadOnlyCollection<T>.Count

Extension Methods

CommonExtensions.ContainsAny<T>(IEnumerable<T>, IEnumerable<T>)
CommonExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
CommonExtensions.Clone<T>(IEnumerable<T>)
SvgExtentions.Traverse<T>(IEnumerable<T>, Func<T, IEnumerable<T>>)
SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(IEnumerable<T>, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.