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
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
Supported Frameworks: Microsoft .NET Framework version 3.5
See Also