ItemProperties Property
See Also 
Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridCollectionView Class : ItemProperties Property

Gets the DataGridItemProperty objects that determine the characteristics of the items contained in the view.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property ItemProperties As DataGridItemPropertyCollection
C# 
public DataGridItemPropertyCollection ItemProperties {get;}

Return Value

A DataGridItemPropertyCollection containing the DataGridItemProperty objects that determine the characteristics of the items contained in the view.

Remarks

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). 

Notes

When binding a grid to a DataGridCollectionView or DataGridCollectionViewSource (in XAML), it is recommended to use the ItemProperties property to add or remove the columns the will end up in the Columns collection and leave the AutoCreateColumns property to true.

Programmatically, when the DataGridCollectionView is bound to a data source, the ItemProperties.Clear method must be called prior to adding DataGridItemProperty objects to the ItemProperties collection to remove items that were automatically added when the DataGridCollectionView was instantiated.

Requirements

Supported Frameworks: Microsoft .NET Framework version 3.5

See Also