title: Xamarin. Forms update list view from another page
body: <p>I have two pages ... the Main Page contains a list view and a button that pops up a page(second page) for insertion to sq lite. so i have a load() method that gets data from sq lite database and load it to list view. i call this method in Main Page constructor and also in second page after each insertion.</p>
  
  <p>load method in Main Page</p>
  
  <pre><code>public void load_Records()
          {
  
              ObservableCollection&lt;MyChickenModal&gt; chickens_record;
              using (var db = new DataAccess())
              {
                  chickens_record = new ObservableCollection&lt;MyChickenModal&gt;(db.GetAllData());
  
              }
              DisplayAlert("Alert", chickens_record.Count.ToString(), "OK");
  
              record_lst.ItemsSource = chickens_record;
  
          }
  </code></pre>
  
  <p>and the second page </p>
  
  <pre><code>public partial class NewChicksPopUp : Rg.Plugins.Popup.Pages.PopupPage
      {
  
          public DateTime selected_date = DateTime.Today.Date;
          MainPage mainP;
  
          public NewChicksPopUp (MainPage mainP)
          {
              InitializeComponent ();
              this.mainP = mainP;
          }
  
          private void chickenSubmit_btn_Clicked(object o, EventArgs e)
          {
  
              string record_name = record_name_txt.Text;
  
              using (var db = new DataAccess())
              {
                  if (!string.IsNullOrEmpty(record_name) &amp;&amp; !string.IsNullOrWhiteSpace(record_name) &amp;&amp; selected_date!=null)
                  {
  
                      db.InsertChicken(new MyChickenModal { Id = 1, Name = record_name, Age = 0, Weight = 0, StartDate = selected_date.ToString("dd/MM/yyyy") });
  
                  }
              }
  
  //************ HERE I CALL THE LOAD METHOD FROM MAIN PAGE********
              mainP.load_Records();
  
              PopupNavigation.Instance.PopAsync(true);
  
          }
  
          private void closePop_btn_Clicked(object o, EventArgs e)
          {
  
              PopupNavigation.Instance.PopAsync(true);
  
          }
  
          private void record_date_picker_DateSelected(object sender , DateChangedEventArgs e)
          {
              selected_date = e.NewDate.Date;
          }
  
  
  
      }
  </code></pre>
  
  <p>The problem is that , load method works fine in constructor and loads data to list view .... when i call the load method from another page after insertion, the method is fine since the alert message shows up but the list does not change at all. 
  note: insertion is ok since when i re run the app , the new record appear</p>