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

Creates data-view groups for list-view items and synchronizes the list view's automatic group headers with the groups produced by its collection view.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class ListViewGroupFactory : IGroupFactory<ListViewDataItem>

Inheritance: objectListViewGroupFactory

Implements: IGroupFactory<ListViewDataItem>

Constructors

Creates the factory used to keep automatic group headers in sync with the specified list view.

C#
public ListViewGroupFactory(RadListViewElement owner)
Parameters:ownerRadListViewElement

The list view element whose automatic groups are maintained.

Methods

Synchronizes the owner's automatic group headers with the supplied groups, reusing existing headers for groups that remain and ordering them to match the collection view.

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

The groups produced by the collection view.

Returns:

GroupCollection<ListViewDataItem>

A group collection that wraps list.

Implements: IGroupFactory<ListViewDataItem>.CreateCollection(IList<Group<ListViewDataItem>>)

Creates a data-view group with the supplied key and parent.

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

The value identifying the group.

parentGroup<ListViewDataItem>

The parent group, or null for a root group.

metaDataobject[]

Additional group metadata; this implementation does not use it.

Returns:

Group<ListViewDataItem>

The new group for list-view data items.

Implements: IGroupFactory<ListViewDataItem>.CreateGroup(object, Group<ListViewDataItem>, params object[])