title: Set focus on selected item of listview
body: <p>I have a gridview within my listview (xaml)
  I set the selected item in my listview by a index value. This works fine. </p>
  
  <p>Now I want the keyboard focus to be on the selected item. </p>
  
  <p>I'm able to set focus to the listview itself, but not to the selected item in the listview.</p>
  
  <pre><code>// Set selected item at index : i
     listview1.SelectedIndex = i;
  
  // Sets focus to listview
     listview1.Focus();
  
  // Try to set focus to selected item
     ListViewItem myitem = listview1.Items[i] as ListViewItem;   
  
  
     myitem.Focus();
  </code></pre>
  
  <p>dgrid1.xaml
      
          </p>
  
  <pre><code>        &lt;ListView Name="listview1" &gt;
  
              &lt;ListView.View&gt;
  
                  &lt;GridView ColumnHeaderToolTip="Multiple Category Information"&gt;                        
  
                      &lt;GridViewColumn DisplayMemberBinding="{Binding Path=Enquiry_Number}" Header="Enquiry number"/&gt;
                      &lt;GridViewColumn DisplayMemberBinding="{Binding Path=Consignee_Ref}" Header="Consignee reference"/&gt;
                      &lt;GridViewColumn DisplayMemberBinding="{Binding Path=Booking_Reference}" Header="Booking reference"/&gt;
                      &lt;GridViewColumn DisplayMemberBinding="{Binding Path=Contract_Number}" Header="Contract Number"/&gt;
                      &lt;GridViewColumn DisplayMemberBinding="{Binding Path=Invoice_Number}" Header="Invoice Number"/&gt;
                      &lt;GridViewColumn DisplayMemberBinding="{Binding Path=Date_Invoice}" Header="Invoice Date"/&gt;
                      &lt;GridViewColumn DisplayMemberBinding="{Binding Path=Status}" Header="Status"/&gt;
                      &lt;GridViewColumn DisplayMemberBinding="{Binding Path=Period_Enquiry}" Header="Period Enquiry"/&gt;
                      &lt;GridViewColumn DisplayMemberBinding="{Binding Path=Consignee}" Header="Consignee"/&gt;
                  &lt;/GridView&gt;
  
              &lt;/ListView.View&gt;
  
          &lt;/ListView&gt;
  </code></pre>
  
  <p>dgrid1.xaml.cs</p>
  
  <pre><code>// Call the DataManager Class which will collect the data and fill the data set with it
  DataManager.BindFilteredData(dts);     
  
  public static void BindFilteredData(DataSet dts)
      {
          using (SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["ConString"].ConnectionString))
          {
              sql = "SELECT Enquiry_Number, Consignee_Ref, Booking_Reference, Contract_Number, Invoice_No, Date_Invoice, [Status], Period_Enquiry, Consignee FROM ConsHead";
  
              using (SqlDataAdapter adapter = new SqlDataAdapter(sql, connection))
              {                    
                  adapter.Fill(dts);
              }
          }
      }     
  </code></pre>