title: Adding a Button to a WPF DataGrid
body: <p>I want to create a <code>DataGrid</code> control in WPF in which there is a button in the first cell of each row. Clicking this button will show <code>RowDetailsTemplate</code> or the SubRow. </p>
  
  <p>How do I add a button which will show/Hide the <code>RowDetailsTemplate</code>?</p>