apply a template to a column of datagrid
问题 I'm using MVVM and I want to apply a template to a specific column of my datagrid. I create Machine class which have Name, costs, properties. I create also Operation Class which have Name porperty, ExecutiveMachine property (Type : Machine) When I use itemsSource to display my list of opertations, I see the path of my machines whereas I want to display their name. I added DataGridTemplateColumn but now, I have machine column twice (one correct, and the other is incorrect) Actually my code is