Xceed Toolkit Plus for WPF v5.1 Documentation
Xceed.Wpf.DataGrid.Toolkit Assembly / Xceed.Wpf.DataGrid Namespace / DataGridCollectionViewSource Class
Members


In This Topic
    DataGridCollectionViewSource Class
    In This Topic
    Represents the XAML proxy of the DataGridCollectionView class and exposes the most commonly used members of the DataGridCollectionView class.
    Syntax
    'Declaration
     
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public NotInheritable Class DataGridCollectionViewSource 
       Inherits DataGridCollectionViewSourceBase
    'Usage
     
    Dim instance As DataGridCollectionViewSource
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public sealed class DataGridCollectionViewSource : DataGridCollectionViewSourceBase 
    Remarks

    The DataGridCollectionViewSource class is not a view but rather the XAML representation of the DataGridCollectionView class, which has a View property to retrieve the underlying DataGridCollectionView, and a Source property by which the underlying data source can be retrieved.

    Like the standard CollectionViewSource, the DataGridCollectionViewSource allows data items to be grouped using either the default PropertyGroupDescription or the DataGridGroupDescription (recommended) and adding them to the GroupDescriptions property. Data items can also be sorted by adding the standard SortDescription structures to the SortDescriptions property, or filtered using the Filter event.

    The ItemProperties collection contains a list of DataGridItemProperty objects that can be added or removed and that contain information relative to their corresponding item (you could consider these items to be the columns that will end up in a grid). 

    In addition to the native CollectionView filtering, the DataGridCollectionView and DataGridCollectionViewSource classes also support automatic filtering, which provides Excel-like end-user filtering according to the distinct values of each column. Automatic filtering can be enabled by setting the AutoFilterMode property to And or Or (by default, None), indicating whether data items will be filtered according to all or at least one of the filtering criteria defined by each column respectively.

    Inheritance Hierarchy

    System.Object
       System.Windows.Threading.DispatcherObject
          System.Windows.DependencyObject
             System.Windows.Data.CollectionViewSource
                Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase
                   Xceed.Wpf.DataGrid.DataGridCollectionViewSource

    Public Constructors
    Public Properties
     NameDescription
    Public PropertyGets a value indicating whether the foreign key descriptions are automatically created. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public Property (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public Property (Inherited from System.Windows.Data.CollectionViewSource)
    Public Property (Inherited from System.Windows.Data.CollectionViewSource)
    Public Property (Inherited from System.Windows.Data.CollectionViewSource)
    Public Property (Inherited from System.Windows.Data.CollectionViewSource)
    Public PropertyGets or sets the culture that is used for grouping and sorting operations. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public PropertyGet or sets the default value of the CalculateDistinctValues property when a DataGridItemProperty has not explicitly set its value. This feature is available only in the Professional Edition (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public Property (Inherited from System.Windows.DependencyObject)
    Public Property (Inherited from System.Windows.Threading.DispatcherObject)
    Public PropertyGets or sets a value representing the constraint applied to the distinct values when automatically filtering data items. This feature is available only in the Professional Edition (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public Property

    Gets or sets the mode that indicates when distinct values used by auto-filtering should be updated.

    (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public PropertyGets or sets a collection GroupDescription objects that describe how the items contained in the collection are grouped in the view. (Inherited from System.Windows.Data.CollectionViewSource)
    Public Property (Inherited from System.Windows.Data.CollectionViewSource)
    Public Property (Inherited from System.Windows.Data.CollectionViewSource)
    Public Property (Inherited from System.Windows.Data.CollectionViewSource)
    Public Property (Inherited from System.Windows.Data.CollectionViewSource)
    Public Property (Inherited from System.Windows.Data.CollectionViewSource)
    Public Property (Inherited from System.Windows.Data.CollectionViewSource)
    Public Property (Inherited from System.Windows.DependencyObject)
    Public PropertyGets a collection of DataGridItemProperty objects, which represent the items that are contained in the underlying collection. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public PropertyGets the type of the items contained in the collection or added through the SourceItems property. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public Property (Inherited from System.Windows.Data.CollectionViewSource)
    Public Property (Inherited from System.Windows.Data.CollectionViewSource)
    Public Property (Inherited from System.Windows.Data.CollectionViewSource)
    Public PropertyGets or sets a collection of SortDescription objects that describe how the items in the collection are sorted in the view. (Inherited from System.Windows.Data.CollectionViewSource)
    Public PropertyGets or sets the collection from which the view is created. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public PropertyGets the view that is currently associated with the DataGridCollectionViewSource.Gets the DataGridCollectionView that is currently associated with this instance of the DataGridCollectionViewSource. (Inherited from System.Windows.Data.CollectionViewSource)
    Top
    Public Methods
     NameDescription
    Public MethodOverloaded.  (Inherited from System.Windows.DependencyObject)
    Public Method (Inherited from System.Windows.DependencyObject)
    Public MethodEnters a defer cycle that can be used to merge changes to the view and delay automatic refresh. (Inherited from System.Windows.Data.CollectionViewSource)
    Public Method (Inherited from System.Windows.DependencyObject)
    Public Method (Inherited from System.Windows.DependencyObject)
    Public Method (Inherited from System.Windows.DependencyObject)
    Public Method (Inherited from System.Windows.DependencyObject)
    Public Method (Inherited from System.Windows.DependencyObject)
    Public Method (Inherited from System.Windows.DependencyObject)
    Public Method (Inherited from System.Windows.DependencyObject)
    Public MethodOverloaded.  (Inherited from System.Windows.DependencyObject)
    Top
    Protected Methods
     NameDescription
    Protected MethodOverridden. Raised when the CollectionViewType property is changed.  
    Protected Method (Inherited from System.Windows.DependencyObject)
    Protected Method (Inherited from System.Windows.Data.CollectionViewSource)
    Protected Method (Inherited from System.Windows.Data.CollectionViewSource)
    Protected Internal Method (Inherited from System.Windows.DependencyObject)
    Top
    Public Events
     NameDescription
    Public Event (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public Event (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public Event (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public Event (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public Event (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public Event (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public EventRaised when the distinct values need to be refreshed. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public Event (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public Event (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public Event (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public EventProvides filtering logic. (Inherited from System.Windows.Data.CollectionViewSource)
    Public Event (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public Event (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public Event (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public Event (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public Event (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public Event (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Top
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also