Xceed DataGrid for WPF v7.3 Documentation
Xceed.Wpf.DataGrid Assembly / Xceed.Wpf.DataGrid Namespace / DataGridCollectionView Class / DataGridCollectionView Constructor / DataGridCollectionView Constructor(IEnumerable,Type,Boolean,Boolean)
A reference to a collection which implements the IEnumerable interface.
The type of the items contained in the collection or added through the SourceItems property.
true if item properties are to be automatically created; false otherwise.
true if detail descriptions  are to be automatically created; false otherwise.


In This Topic
    DataGridCollectionView Constructor(IEnumerable,Type,Boolean,Boolean)
    In This Topic
    Initializes a new instance of the DataGridCollectionView class specifying the collection—which must implement the IEnumerable interface—around which the DataGridCollectionView will be created, including the type of the items contained in the collection or added through the SourceItems property, as well as indicating whether item properties and detail descriptions are to be automatically created.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal collection As IEnumerable, _
       ByVal itemType As Type, _
       ByVal autoCreateItemProperties As Boolean, _
       ByVal autoCreateDetailDescriptions As Boolean _
    )
    'Usage
     
    Dim collection As IEnumerable
    Dim itemType As Type
    Dim autoCreateItemProperties As Boolean
    Dim autoCreateDetailDescriptions As Boolean
     
    Dim instance As New DataGridCollectionView(collection, itemType, autoCreateItemProperties, autoCreateDetailDescriptions)
    public DataGridCollectionView( 
       IEnumerable collection,
       Type itemType,
       bool autoCreateItemProperties,
       bool autoCreateDetailDescriptions
    )

    Parameters

    collection
    A reference to a collection which implements the IEnumerable interface.
    itemType
    The type of the items contained in the collection or added through the SourceItems property.
    autoCreateItemProperties
    true if item properties are to be automatically created; false otherwise.
    autoCreateDetailDescriptions
    true if detail descriptions  are to be automatically created; false otherwise.
    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