In This Article

ICollectionView<T> Interface

Defines the base requirements for a managed view over a collection.

public interface ICollectionView<T>
Type Parameters:
T -

Remarks

This experimental interface is subject to breaking changes and should only be used in conjunction with Actipro controls in the manner directed.

Properties

Filter

A filter used to determine which items are included in the view.

Predicate<T>? Filter { get; set; }

Property Value

Predicate<T>

Groups

The groups of items including by the view of this collection.

ObservableCollection<CollectionViewGroup> Groups { get; }

Property Value

ObservableCollection<CollectionViewGroup>

HasFilter

Indicates if the view has defined a filter.

bool HasFilter { get; }

Property Value

bool

HasGroups

Indicates if the view has defined any groups.

bool HasGroups { get; }

Property Value

bool

Methods

GetGroupNames(bool)

Gets the name of the available groups, optionally included groups that are excluded by the current filter.

IEnumerable<string?> GetGroupNames(bool ignoreFilter)
Parameter Type Description
ignoreFilter bool

When true, group names will be included for items that are part of the collection but currently excluded due to a filter.

Returns

IEnumerable<string>

Refresh()

Refreshes the view.

void Refresh()

ResolveGroupName(T)

Resolves the group name, if any, that applies to the given item.

string? ResolveGroupName(T item)
Parameter Type Description
item T

The item to examine.

Returns

string:

The group name, or null if a group name is not available.

Extension Methods