The AutoCreateColumns property determines if all or none of the columns are automatically created. If you want only some columns in the grid, then you have 3 options:
1- Set AutoCreateColumns to false and manually define the columns you want by adding them to the grid's Columns collection.
2- Leave AutoCreateColumns to its default value (true) and hide the columns you do not want by setting their Visible property to false.
3- Leave AutoCreateColumns to its default value and set the AutoCreateItemProperties property defined on the DataGridCollectionViewSource to false. The next step is to define the item properties, which each correspond to a column in the grid, by adding them to the DataGridCollectionViewSource's ItemProperties collection.
Senior Technical Writer
- Xceed Software
In three words I can sum up everything I've learned about life: it goes on.