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

Group

Class

Represents an item that is created after grouping.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

C#
public class Group : IGroup

Inheritance: objectGroup

Derived Classes: AggregateFunctionsGroup

Implements: IGroup

Constructors

C#
public Group()

Properties

Gets a value indicating whether this instance has any sub groups.

C#
public bool HasSubgroups { get; set; }
Property Value:

true if this instance has sub groups; otherwise, false.

Implements: IGroup.HasSubgroups

Gets the number of items in this group.

C#
public int ItemCount { get; set; }
Property Value:

The items count.

Implements: IGroup.ItemCount

Gets the items in this groups.

C#
public IEnumerable Items { get; set; }
Property Value:

The items in this group.

Implements: IGroup.Items

Gets the key for this group.

C#
public object Key { get; set; }
Property Value:

The key for this group.

Implements: IGroup.Key

Gets the parent group.

C#
public IGroup ParentGroup { get; }
Property Value:

The parent group.

Implements: IGroup.ParentGroup

Gets the subgroups, if HasSubgroups is true, otherwise empty collection.

C#
public ReadOnlyCollection<IGroup> Subgroups { get; }
Property Value:

The subgroups.

Implements: IGroup.Subgroups

Methods

C#
public override bool Equals(object obj)
Parameters:objobjectReturns:

bool

Overrides: object.Equals(object)

C#
public override int GetHashCode()
Returns:

int

Overrides: object.GetHashCode()

C#
public override string ToString()
Returns:

string

Overrides: object.ToString()