title: Datagrid won't enter edit mode
body: <p>Is there a tutorial for how to use edit mode on a wpf datagrid? This simple grid below can't seem to edit the comment column.</p>
  
  <pre><code>&lt;DataGrid x:Name="_myDataGrid" AutoGenerateColumns="False" IsReadOnly="True" ItemsSource="{Binding}" SelectionMode="Single" CanUserResizeColumns="False" CanUserResizeRows="False"&gt;
              &lt;DataGrid.RowHeaderStyle&gt;
                  &lt;Style TargetType="DataGridRowHeader"&gt;
                      &lt;Setter Property="Content" Value="{Binding doorNumber}" /&gt;
                      &lt;Setter Property="MinWidth" Value="40" /&gt;
                      &lt;Setter Property="Width" Value="Auto" /&gt;
                  &lt;/Style&gt;
              &lt;/DataGrid.RowHeaderStyle&gt;
              &lt;DataGrid.Columns&gt;
                  &lt;DataGridTemplateColumn Header="Comment" MinWidth="100" Width="*" IsReadOnly="False"&gt;
                      &lt;DataGridTemplateColumn.CellTemplate&gt;
                          &lt;DataTemplate&gt;
                              &lt;TextBlock Text="{Binding doorComment}" ToolTip="{Binding doorComment}" TextTrimming="CharacterEllipsis" IsHitTestVisible="False" /&gt;
                          &lt;/DataTemplate&gt;
                      &lt;/DataGridTemplateColumn.CellTemplate&gt;
                      &lt;DataGridTemplateColumn.CellEditingTemplate&gt;
                          &lt;DataTemplate&gt;
                              &lt;TextBox Text="{Binding doorComment}" TextWrapping="Wrap" /&gt;
                          &lt;/DataTemplate&gt;
                      &lt;/DataGridTemplateColumn.CellEditingTemplate&gt;
                  &lt;/DataGridTemplateColumn&gt;
              &lt;/DataGrid.Columns&gt;
          &lt;/DataGrid&gt;
  </code></pre>