ICollectionView<T>
Exposes the filtered, sorted, and grouped projection of a data-item collection, with change notifications and current-item navigation.
Definition
Namespace:Telerik.WinControls.Data
Assembly:Telerik.WinControls.dll
Type Parameters:
T
The data-item type shown by the view.
Syntax:
public interface ICollectionView<T> where T : IDataItem
Properties
Gets the item designated as current by the view, or the type's default value when there is no current item.
T CurrentItem { get; }
Gets the zero-based position of the current item in the view, or -1 when there is no current item.
int CurrentPosition { get; }
Gets or sets the predicate used to include items in the view.
Predicate<T> Filter { get; set; }
GroupComparer
IComparer<Group<T>>
Gets or sets the comparer that orders groups in the view.
IComparer<Group<T>> GroupComparer { get; set; }
Gets the rules that define the view's group hierarchy.
GroupDescriptorCollection GroupDescriptors { get; }
Gets the top-level groups produced by the view.
GroupCollection<T> Groups { get; }
Gets the ordered sort rules applied to the source items.
SortDescriptorCollection SortDescriptors { get; }
SourceCollection
IEnumerable<T>
Gets the underlying sequence from which the view is built.
IEnumerable<T> SourceCollection { get; }
Methods
Refreshes the projected view after changes to its source or descriptors.
void Refresh()
Events
Occurs when the items or ordering exposed by the view change.
event NotifyCollectionChangedEventHandler CollectionChanged
Occurs after the current item or position changes.
event EventHandler CurrentChanged
Occurs before the current item or position changes; a handler can cancel the change.
event CancelEventHandler CurrentChanging