title: Bind First ListView slected items to second ListView
body: <p>I have first and second ListView, as shown in the image:</p>
  
  <p><a href="https://i.stack.imgur.com/XQxfC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XQxfC.jpg" alt="enter image description here"></a></p>
  
  <p>I populated the first ListView, using this code  </p>
  
  <pre><code>class CategoriesList
  {
      public string Category_Names { get; set; }
      public double Category_Amount { get; set; }
  
  
      public static List&lt;CategoriesList&gt; get_CategoryList()
      {
          try
          {
              SQLiteConnection con = new SQLiteConnection("  Data Source=system.sqlite; Version=3; Compress=True; ");
              con.Open();
              string query = " SELECT category_id, category_name, amount FROM acc_income_category WHERE deleted = 0 ORDER BY category_name ASC ";
              SQLiteCommand cmd = new SQLiteCommand(query, con);
  
              SQLiteDataReader dr = cmd.ExecuteReader();
  
              var categories = new List&lt;CategoriesList&gt;();
  
              while (dr.Read())
              {
                  CategoriesList cl = new CategoriesList();
  
                  cl.Category_Names = dr.GetString(1);
                  cl.Category_Amount = dr.GetDouble(2);
  
                  categories.Add(cl);
              }
  
              con.Close();
  
              return categories;
  
          }
          catch (Exception ex)
          {
              System.Windows.MessageBox.Show(ex.Message);
              return null;
          }
      }
  
  } 
  </code></pre>
  
  <p>This is my Xaml Code</p>
  
  <pre><code>&lt;ListView x:Name="ListBox_Category_Names" VerticalAlignment="Stretch"  HorizontalAlignment="Left"
                                          Width="auto"  Height="300" SelectionMode="Single"  Grid.Column="0" Margin="0,0,10,0" 
                                      ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" SelectionChanged="ListBox_Category_Names_SelectionChanged" 
                                                  &gt;
                                          &lt;ListView.View&gt;
                                              &lt;GridView&gt;
  
                                                  &lt;GridViewColumn Header="Category Name" DisplayMemberBinding="{Binding Category_Names}" Width="280"  /&gt;
                                                  &lt;GridViewColumn Header="Amount " DisplayMemberBinding="{Binding Category_Amount, ConverterCulture=ig-NG, StringFormat=\{0:C\}}"  Width="130"  /&gt;
  
                                              &lt;/GridView&gt;
                                          &lt;/ListView.View&gt;
                                      &lt;/ListView&gt;
  
  
                                      &lt;ListView x:Name="ListBox_Selected_Category" VerticalAlignment="Stretch"  HorizontalAlignment="Stretch"
                                          Width="auto"  Height="300" SelectionMode="Single"  Grid.Column="1" Margin="10,0,0,0" 
                                      ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" 
                                              ItemsSource="{Binding SelectedItem, ElementName=ListBox_Category_Names}"    &gt;
                                          &lt;ListView.View&gt;
                                              &lt;GridView&gt;
  
                                                  &lt;GridViewColumn Header="Category Name" DisplayMemberBinding="{Binding Category_Names}" Width="250"  /&gt;
  
                                                  &lt;GridViewColumn Header="Amount" &gt;
                                                      &lt;GridViewColumn.CellTemplate&gt;
                                                          &lt;DataTemplate&gt;
                                                              &lt;TextBox x:Name="txtBox_amount" Text="{Binding Category_Amount, ConverterCulture=ig-NG, StringFormat=\{0:C\}}"  Width="200" Height="35"  /&gt;
                                                          &lt;/DataTemplate&gt;
                                                      &lt;/GridViewColumn.CellTemplate&gt;
                                                  &lt;/GridViewColumn&gt;
  
                                              &lt;/GridView&gt;
                                          &lt;/ListView.View&gt;
                                      &lt;/ListView&gt;
  </code></pre>
  
  <p>This is the Code thats Loads the First ListBox</p>
  
  <pre><code>ListBox_Category_Names.ItemsSource = CategoriesList.get_CategoryList();
  </code></pre>
  
  <p>Not MVVM</p>
  
  <p>Now I'm stuck cause I need to bind the First ListView Selected Items to the Second ListView. Please, I really need help, been stuck with this for the past three (3) weeks. Thanks in advance.</p>