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