I have a DataGrid as rowDetailTemplate. in this grid I'd like to add a button on header. I made the following XAML code
<sdk:DataGridTemplateColumn >
<sdk:DataGridTemplateColumn.Header>
<DataTemplate>
<Button Content="Row" Height="23" HorizontalAlignment="Left" VerticalAlignment="Top" Width="30" />
</DataTemplate>
</sdk:DataGridTemplateColumn.Header>
<sdk:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Button Content="Del"></Button>
</DataTemplate>
</sdk:DataGridTemplateColumn.CellTemplate>
</sdk:DataGridTemplateColumn>
Everything works correctly but the this column header. I am getting System.Windows.DataTemplate instead of the button. What am i doing wrong?