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

Gets a value indicating whether the item properties are automatically created.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property AutoCreateItemProperties As Boolean
C# 
public bool AutoCreateItemProperties {get;}

Return Value

true it the item properties are automatically created; false otherwise. By default, true.

Remarks

Automatic creation of item properties can be disabled by setting the AutoCreateItemProperties property of the DataGridCollectionViewSource to false (by default, true) or by specifying so when creating an instance of the DataGridCollectionView.

Notes

The AutoCreateItemProperties property was added to the DataGridCollectionView and DataGridCollectionViewSource properties with a default value of true; therefore, as of version 3.0, all item properties (i.e., columns) will be added to the grid and not only the ones defined in the ItemProperties collection. Setting the AutoCreateItemProperties to false will revert back to the expected 2.0 behavior.

Requirements

Supported Frameworks: Microsoft .NET Framework version 3.5

See Also