I\'ve got an AutoGenerateColumns WPF-DataGrid getting bound in code-behind to LINQ-to-SQL, which works fine.
AutoGenerateColumns
But when I take off the AutoGenerateC
AutoGenerateC
You're trying to put the column directly into the DataGrid (therefore it's trying to put the column in the grid's Items collection and that explains your error). You need to put it inside the Columns collection:
DataGrid
Items
Columns