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

Stores sorting, grouping, and filter settings, either from an existing view or as locally assigned settings.

Definition

Namespace:Telerik.WinControls.Data

Assembly:Telerik.WinControls.dll

Type Parameters:

T

Syntax:

C#
public class CollectionViewProvider<T> where T : IDataItem, INotifyPropertyChanged

Inheritance: objectCollectionViewProvider<T>

Constructors

Initializes a new instance of the CollectionViewProvider<T> class.

C#
public CollectionViewProvider()

Initializes a new instance of the CollectionViewProvider<T> class.

C#
public CollectionViewProvider(ICollectionView<T> sourceCollectionView)
Parameters:sourceCollectionViewICollectionView<T>

The source collection view.

Properties

Gets or sets the filter.

C#
public Predicate<T> Filter { get; set; }
Property Value:

The filter.

Gets or sets the group descriptors.

C#
public GroupDescriptorCollection GroupDescriptors { get; set; }
Property Value:

The group descriptors.

Gets or sets the sort descriptors.

C#
public SortDescriptorCollection SortDescriptors { get; set; }
Property Value:

The sort descriptors.

Methods

Gets the view.

C#
public ISnapshotCollectionView<T> GetView(IEnumerable<T> source)
Parameters:sourceIEnumerable<T>

The source.

Returns:

ISnapshotCollectionView<T>

Raises the NotifyPropertyChanged event

C#
protected virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters:ePropertyChangedEventArgs

Events

Raised whenever SortDescriptors is assigned, or when GroupDescriptors or Filter changes to a different value. Mutations within descriptor collections are not reported.

C#
public event PropertyChangedEventHandler PropertyChanged