Xceed DataGrid for WPF v7.3 Documentation
Xceed.Wpf.DataGrid 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 detail descriptions are automatically created. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public PropertyGets a value indicating whether the foreign key descriptions are automatically created. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public PropertyGets a value indicating whether the item properties are automatically created. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public PropertyGets or sets a value indicating how automatic filtering of the data items will be performed. This feature is available only in the Professional Edition (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 PropertyGets a collection of DataGridDetailDescription objects that provide information on the details that will be contained in a grid, including sorting, grouping, and child detail descriptions. This feature is available only in the Professional Edition (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    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 value indicating how filters entered into a FilterRow are applied. (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 a collection of the statistical functions whose results can be used by various elements throughout a grid.  
    Public PropertyGets or sets a value indicating whether only statistical functions on property values of the data source object that have changed should be updated, instead of recalculating all the statistical functions as soon as only one property value has changed.  
    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
    Extension Methods
     NameDescription
    Public Extension MethodOverloaded. 
    Top
    Public Events
     NameDescription
    Public Event

    Occurs after the AutoFilterValues of the DataGridItemProperty of a detail level changes.

    (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public EventRaised when the EditItem method has been called to signal that the edit process of an item in the underlying data source is about to begin. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public EventRaised when the CancelEdit >method has been called to signal that the edit process of an item in the underlying data source is about to be canceled. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public EventRaised when the CancelNew method has been called to signal that the insertion process of a new item is about to be canceled. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public EventRaised when the CommitEdit method has been called to signal that modifications made to an item in the underlying data source are about to be committed. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public EventRaised when the CommitNew method has been called to signal that a new item is about to be committed to the underlying data source. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public EventRaised when the AddNew method has been called to signal that a new item is about to be created. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public EventRaised when the distinct values need to be refreshed. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public EventRaised after the BeginningEdit event to signal that the edit process of an item in the underlying data source has begun. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public EventRaised after the CancelingEdit event to signal that the edit process of an item in the underlying data source has been canceled. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public EventRaised after the CommittingEdit event to signal that the modifications made to an item in the underlying data source have been committed. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public EventProvides filtering logic. (Inherited from System.Windows.Data.CollectionViewSource)
    Public EventRaised after the CreatingNewItem event to allow the new item to be initialized. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public EventRaised after the RemovingItem event to signal that an item has been removed from the underlying data source. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public EventRaised after the CancelingNewItem event to signal that the insertion process of a new item has been canceled. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public EventRaised after the CommittingNewItem event to signal that a new item has been committed to the underlying data source. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public EventRaised after the CreatingNewItem and InitializingNewItem events to signal that a new item has been created. (Inherited from Xceed.Wpf.DataGrid.DataGridCollectionViewSourceBase)
    Public EventRaised when the Remove ora href="Xceed.Wpf.DataGrid~Xceed.Wpf.DataGrid.DataGridCollectionViewBase~RemoveAt.html">RemoveAt methods have been called to signal that an item is about to be removed from the underlying data source. (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