title: How To Set Border Margin on a WPF DataGrid?
body: <p>I'm using the WPF DataGrid and have it set to place a red border around any row that the user modifies.  It works well, however when the border appears all the cells inside that row get pushed over a pixel or two.  In other words a cell's left and right border no longer lines up with the one above or below it, so it looks weird. </p>
  
  <p>Here's the code I'm using to get the red border to appear OnEdit (Note: IsDirty is a property on my bound object that's set when a value gets modified):</p>
  
  <pre><code>&lt;Style TargetType="DataGridRow"&gt;
      &lt;Style.Triggers&gt;
          &lt;DataTrigger Binding="{Binding IsDirty}" Value="true"&gt;
              &lt;Setter Property="BorderBrush" Value="Red" /&gt;
              &lt;Setter Property="BorderThickness" Value="1" /&gt;                    
          &lt;/DataTrigger&gt;
      &lt;/Style.Triggers&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>What can I add so that I can modify the red border margins so that it won't interfere with the cells' borders?</p>
  
  <p>Thanks</p>