Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ICollectionView Interface

Enables collections to have the functionalities of current record management, custom sorting, filtering, and grouping.

Namespace:  System.ComponentModel
Assembly:  WindowsBase (in WindowsBase.dll)

public interface ICollectionView : IEnumerable, 
	INotifyCollectionChanged

The ICollectionView type exposes the following members.

  NameDescription
Public propertyCanFilterGets a value that indicates whether this view supports filtering via the Filter property.
Public propertyCanGroupGets a value that indicates whether this view supports grouping via the GroupDescriptions property.
Public propertyCanSortGets a value that indicates whether this view supports sorting via the SortDescriptions property.
Public propertyCultureGets or sets the cultural info for any operations of the view that may differ by culture, such as sorting.
Public propertyCurrentItemGets the current item in the view.
Public propertyCurrentPositionGets the ordinal position of the CurrentItem within the view.
Public propertyFilterGets or sets a callback used to determine if an item is suitable for inclusion in the view.
Public propertyGroupDescriptionsGets a collection of GroupDescription objects that describe how the items in the collection are grouped in the view.
Public propertyGroupsGets the top-level groups.
Public propertyIsCurrentAfterLastGets a value that indicates whether the CurrentItem of the view is beyond the end of the collection.
Public propertyIsCurrentBeforeFirstGets a value that indicates whether the CurrentItem of the view is beyond the beginning of the collection.
Public propertyIsEmptyReturns a value that indicates whether the resulting view is empty.
Public propertySortDescriptionsGets a collection of SortDescription objects that describe how the items in the collection are sorted in the view.
Public propertySourceCollectionReturns the underlying collection.
Top

  NameDescription
Public methodContainsReturns a value that indicates whether a given item belongs to this collection view.
Public methodDeferRefreshEnters a defer cycle that you can use to merge changes to the view and delay automatic refresh.
Public methodGetEnumeratorReturns an enumerator that iterates through a collection. (Inherited from IEnumerable.)
Public methodMoveCurrentToSets the specified item to be the CurrentItem in the view.
Public methodMoveCurrentToFirstSets the first item in the view as the CurrentItem.
Public methodMoveCurrentToLastSets the last item in the view as the CurrentItem.
Public methodMoveCurrentToNextSets the item after the CurrentItem in the view as the CurrentItem.
Public methodMoveCurrentToPositionSets the item at the specified index to be the CurrentItem in the view.
Public methodMoveCurrentToPreviousSets the item before the CurrentItem in the view as the CurrentItem.
Public methodRefreshRecreates the view.
Top

  NameDescription
Public eventCollectionChangedOccurs when the collection changes. (Inherited from INotifyCollectionChanged.)
Public eventCurrentChangedWhen implementing this interface, raise this event after the current item has been changed.
Public eventCurrentChangingWhen implementing this interface, raise this event before changing the current item. Event handler can cancel this event.
Top

  NameDescription
Public Extension MethodAsParallelEnables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension MethodAsQueryableConverts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodCast<TResult>Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodOfType<TResult>Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

The interface is implemented by the CollectionView class, which is the base class for BindingListCollectionView, ListCollectionView, and ItemCollection.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft