title: I want to select the same row on the 2nd listview after i select it on the 1st listview in wpf, how can that be done?
body: <p>So i have two list views that are related by the first column (TestID). I want the row to be selected automatically on the 2nd listview when i select the row on the 1st listview. This is what i have so far.</p>
  
  <pre><code>AutomationTestResults tr = new AutomationTestResults();
      public int SelectedTestID
      {
  
          get
          {
  
              return tr.TestID;
          }
  
          set
          {
              tr.TestID = value;
              NotifyPropertyChanged("SelectedTestID");
          }
      }
  
      public event PropertyChangedEventHandler PropertyChanged;
      public void NotifyPropertyChanged(String propertyName)
      {
          if (PropertyChanged != null)
              PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
      }
  </code></pre>
  
  <p>=============XAML========================================================</p>
  
  <pre><code>&lt;ListView ItemsSource="{Binding TRCollection }" SelectedItem="{Binding SelectedTestID}" SelectionChanged="ListView_SelectionChanged"
                    Grid.Row="1" Height="197" HorizontalAlignment="Left" Margin="12,22,0,0" Name="listView1" VerticalAlignment="Top" Width="680"&gt;
          &lt;/ListView&gt;
          &lt;ListView ItemsSource="{Binding TCCollection}" SelectedItem="{Binding SelectedTestID}" SelectionChanged="ListView_SelectionChanged"
                    Grid.Row="1" Height="245" HorizontalAlignment="Left" Margin="12,251,0,0" Name="listView2" VerticalAlignment="Top" Width="680" &gt;
  </code></pre>