title: Get CommandParameter from DataGrid Button
body: <p>I have a simple question, I am having a button insile datagrid and it looks like:
                                      </p>
  
  <pre><code>                &lt;DataGrid.Columns&gt;
                      &lt;DataGridTextColumn Binding="{Binding name}" Header="Nazwa" /&gt;
  
                      &lt;DataGridTemplateColumn&gt;
                          &lt;DataGridTemplateColumn.CellTemplate&gt;
                              &lt;DataTemplate&gt;
                                  &lt;Button Content="Usuń" CommandParameter="{Binding DataContext.Commendation.id, ElementName=dataGrid}" Command="{Binding DataContext.RemoveCommand, ElementName=dataGrid}" /&gt;
                              &lt;/DataTemplate&gt;
                          &lt;/DataGridTemplateColumn.CellTemplate&gt;
                      &lt;/DataGridTemplateColumn&gt;
                  &lt;/DataGrid.Columns&gt;
  
              &lt;/DataGrid&gt;
  </code></pre>
  
  <p>I've managed to run command, but now i am having trouble passing command parameter, mainly id what am I doing wrong?</p>