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.
Groups
The groups of items including by the view of this collection.
ObservableCollection<CollectionViewGroup> Groups { get; }
Property Value
HasFilter
Indicates if the view has defined a filter.
HasGroups
Indicates if the view has defined any groups.
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 |
Returns
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.