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

Creates group nodes and collections used by a collection view's grouping hierarchy.

Definition

Namespace:Telerik.WinControls.Data

Assembly:Telerik.WinControls.dll

Type Parameters:

T

The data-item type contained by the groups.

Syntax:

C#
public interface IGroupFactory<T> where T : IDataItem

Methods

Creates the collection that exposes a set of groups to the view.

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

The groups to expose.

Returns:

GroupCollection<T>

A collection containing the supplied groups.

Creates a group node for a key and its parent.

C#
Group<T> CreateGroup(object key, Group<T> parent, params object[] metaData)
Parameters:keyobject

The value identifying the group.

parentGroup<T>

The parent group, or null for a root group.

metaDataobject[]

Optional factory-specific data associated with group creation.

Returns:

Group<T>

The group node representing the key.