title: Wpf Datagrid textbox row selected
body: <p>I have an problem with a datagrid where a column is a Textbox with a ContextMenu. But the problem is that then i right click on the textbox the row is not selected. Which means that it can set the values in the wrong place. In the picture below it's shown'en the issue. I have right clicked the top row, but it's still the row below is selected, which means that if i select "Mixed Paint" it will like the picture be inserted below the intended row.  <img src="https://i.stack.imgur.com/2l4v7.png" alt="enter image description here"></p>
  
  <p>This is the code for the column:</p>
  
  <pre><code>&lt;DataGridTemplateColumn Header="{wpfTx:Translate Action}" IsReadOnly="false" Width="*"&gt;
                          &lt;DataGridTemplateColumn.CellTemplate&gt;
                              &lt;DataTemplate&gt;
                                  &lt;TextBox Text="{Binding Action, Mode=TwoWay}" TextWrapping="Wrap" BorderThickness="0" BorderBrush="Transparent"&gt;
                                     &lt;TextBox.ContextMenu&gt;
                                          &lt;ContextMenu&gt;
                                              &lt;MenuItem ItemsSource="{Binding ActionMenu}"&gt;
                                                  &lt;MenuItem.Icon&gt;
                                                      &lt;controls:Icon IconKeyName="Config" Height="45" Width="45"/&gt;
                                                  &lt;/MenuItem.Icon&gt;
                                                  &lt;MenuItem.Header &gt;
                                                      &lt;Label Content="Standard actions" VerticalContentAlignment="Center" FontSize="16" FontWeight="Bold"/&gt;
                                                  &lt;/MenuItem.Header&gt;
                                                  &lt;MenuItem.ItemTemplate&gt;
                                                      &lt;DataTemplate&gt;
                                                          &lt;MenuItem Command="{Binding ActionMenuCommand}" CommandParameter="{Binding}"&gt;
                                                              &lt;MenuItem.Header&gt;
                                                                  &lt;Label Content="{Binding Description}" FontSize="16" FontWeight="Bold"/&gt;
                                                              &lt;/MenuItem.Header&gt;
                                                              &lt;MenuItem.Icon&gt;
                                                                  &lt;controls:Icon IconKeyName="Edited" Height="45" Width="45"/&gt;
                                                              &lt;/MenuItem.Icon&gt;
                                                          &lt;/MenuItem&gt;
                                                      &lt;/DataTemplate&gt;
                                                  &lt;/MenuItem.ItemTemplate&gt;
                                              &lt;/MenuItem&gt;
                                          &lt;/ContextMenu&gt;
                                      &lt;/TextBox.ContextMenu&gt;
                                  &lt;/TextBox&gt;
                              &lt;/DataTemplate&gt;
                          &lt;/DataGridTemplateColumn.CellTemplate&gt;
                      &lt;/DataGridTemplateColumn&gt;
  </code></pre>