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