title: Set focus on TextBox, on keyboard navigation KeyDown (SilverLight DataGrid GetCell Content)
body: <p>I have a Silverlight app, with a dataGrid in it, I added a TextBox to each row of the DataGrid, on the sixth column, now what I'm trying to accomplish here is, once the user presses the down key, the selected row changes, once it does the focus should be set to the TextBox, so that the user can input data.</p>
  
  <p>Added text box to xaml, like so:</p>
  
  <pre><code>&lt;sdk:DataGridTemplateColumn Header="Confirmation code" Width="Auto"&gt;
      &lt;sdk:DataGridTemplateColumn.CellTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;TextBox/&gt;
          &lt;/DataTemplate&gt;
      &lt;/sdk:DataGridTemplateColumn.CellTemplate&gt;
  &lt;/sdk:DataGridTemplateColumn&gt;
  </code></pre>
  
  <p>And added this to the xaml.cs under the DataGrid_SelectionChanged event:</p>
  
  <pre><code>private void BookingsView_SelectionChanged(object sender, SelectionChangedEventArgs e)
  {
  TextBox content = DataGrid.Columns[6].GetCellContent(DataGrid.SelectedItem) as TextBox;
  if (content != null) 
    content.Focus();
  }
  </code></pre>
  
  <p>P.S : additionally, if possible, please suggest me a way, by which I can disable row selection of DataGrid but still, have the focus set to the text box upon keydown navigation..</p>