Have a datagrid with autogeneratecolumn
<DataGrid ItemsSource="{Binding Table}"
CanUserSortColumns="False"
CanUserAddRows="False"
CanUserDeleteRows="False"
SelectionUnit="Cell"
AutoGenerateColumns="True">
I need all the columns after 1 to have their DataGridTemplateColumn. DataGridTemplateColumn:
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding ColumnN}" Background="Red"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
<DataGridTemplateColumn.CellEditingTemplate>
<DataTemplate>
<TextBox Text="{Binding ColumnN}"/>
</DataTemplate>
</DataGridTemplateColumn.CellEditingTemplate>
</DataGridTemplateColumn>
ColumnN is the specific name for the column that will be Binding. There is no model. But if there is a solution somehow through the model, then it might work. But also with autogeneration.