title: How to bring cell in edit mode as soon as it gets focus
body: <p>Suppose I have a DataGrid. Suppose all the columns are TemplateColumns. When any cell gets focus I want it to go in EditMode.</p>
  
  <p><strong>What I have tried so far:</strong> </p>
  
  <p>I have created a style for DataGridCell as follows:</p>
  
  <pre><code>&lt;Style TargetType="{x:Type DataGridCell}"&gt;
      &lt;EventSetter Event="GotFocus" Handler="DataGridCell_GotFocus" /&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>In the Code-Behind of the Window :</p>
  
  <pre><code>private void DataGridCell_GotFocus(object sender, RoutedEventArgs e)
  {
      DataGridCell cell = sender as DataGridCell;
      if (cell != null &amp;&amp; !cell.IsEditing &amp;&amp; !cell.IsReadOnly)
      {
          cell.IsEditing = true;
      }
  }
  </code></pre>
  
  <p><strong>Problems in above try :</strong></p>
  
  <p>I have to single click the cell to bring it in edit mode.</p>